]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-115712: Support CSV dialects with delimiter=' ' and skipinitialspace=True (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 20 Feb 2024 16:09:50 +0000 (18:09 +0200)
committerGitHub <noreply@github.com>
Tue, 20 Feb 2024 16:09:50 +0000 (18:09 +0200)
commit937d2821501de7adaa5ed8491eef4b7f3dc0940a
tree594148ae7372e2d34e9f089a62ab1a0a67130397
parentcc82e33af978df793b83cefe4e25e07223a3a09e
gh-115712: Support CSV dialects with delimiter=' ' and skipinitialspace=True (GH-115721)

Restore support of such combination, disabled in gh-113796.

csv.writer() now quotes empty fields if delimiter is a space and
skipinitialspace is true and raises exception if quoting is not possible.
Lib/test/test_csv.py
Misc/NEWS.d/next/Library/2024-02-20-16-42-54.gh-issue-115712.EXVMXw.rst [new file with mode: 0644]
Modules/_csv.c