8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 752953a commit b9ce659Copy full SHA for b9ce659
Doc/library/csv.rst
@@ -609,7 +609,7 @@ A slightly more advanced use of the reader --- catching and reporting errors::
609
for row in reader:
610
print(row)
611
except csv.Error as e:
612
- sys.exit('file {}, line {}: {}'.format(filename, reader.line_num, e))
+ sys.exit(f'file {filename}, line {reader.line_num}: {e}')
613
614
And while the module doesn't directly support parsing strings, it can easily be
615
done::
0 commit comments