]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-154744: Improve detection of skipinitialspace in csv.Sniffer (GH-154745)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 27 Jul 2026 15:03:17 +0000 (18:03 +0300)
committerGitHub <noreply@github.com>
Mon, 27 Jul 2026 15:03:17 +0000 (18:03 +0300)
commitb8862aeac3d7cc4ed661c232130cd51c8f691a95
tree778fc734363aacf2ef97285dc85d5ad9201fe7a9
parentc7b9a13a7528342fdac47a2121248f0b989131e5
gh-154744: Improve detection of skipinitialspace in csv.Sniffer (GH-154745)

Detect the padding by parsing the sample both with and without
skipinitialspace and comparing the two readings, instead of testing
whether every field following a delimiter starts with a space.
Lib/csv.py
Lib/test/test_csv.py
Misc/NEWS.d/next/Library/2026-07-26-13-40-00.gh-issue-154744.Sk1Psp.rst [new file with mode: 0644]