]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-115712: Support CSV dialects with delimiter=' ' and skipinitialspace=True...
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 20 Feb 2024 19:09:10 +0000 (21:09 +0200)
committerGitHub <noreply@github.com>
Tue, 20 Feb 2024 19:09:10 +0000 (19:09 +0000)
commit9068c8c614b869d8183b74d2a6b0c13370572271
tree0ced24ab1eb43882aeab2a9e67e9d8d4342134e3
parent142711a31dc1469570aa5b5e76450314d6777bb2
[3.11] gh-115712: Support CSV dialects with delimiter=' ' and skipinitialspace=True (GH-115721) (GH-115729) (GH-115738)

(cherry picked from commit 5ea86f496a4cfb34abbe2b7bb6fa7f25eeeb6294)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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