]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-115712: Support CSV dialects with delimiter=' ' and skipinitialspace=True...
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 20 Feb 2024 17:53:29 +0000 (19:53 +0200)
committerGitHub <noreply@github.com>
Tue, 20 Feb 2024 17:53:29 +0000 (17:53 +0000)
commit5ea86f496a4cfb34abbe2b7bb6fa7f25eeeb6294
treeab1442b1fc6794a6454d65f514b3cd8b7cc3335a
parent20907ca844f6c32a2ecf66f9ea3ab4b8bba93fa5
[3.12] gh-115712: Support CSV dialects with delimiter=' ' and skipinitialspace=True (GH-115721) (GH-115729)

csv.writer() now quotes empty fields if delimiter is a space and
skipinitialspace is true and raises exception if quoting is not possible.
(cherry picked from commit 937d2821501de7adaa5ed8491eef4b7f3dc0940a)
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