Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Lib/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class excel(Dialect):
delimiter = ','
quotechar = '"'
doublequote = True
skipinitialspace = False
skipinitialspace = True
lineterminator = '\r\n'
quoting = QUOTE_MINIMAL
register_dialect("excel", excel)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Set `skipinitialspace` to True by default in csv.py

The default value of `skipinitialspace` in `csv.py` has been changed to `True`, aligning with common user preferences and improving ease of use when parsing CSV files with leading spaces.

Patch by Logan Wright. ([GH-128921](https://github.com/python/cpython/pull/128921))
Loading