]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-103925: Fix csv.Sniffer for a quoted field ending a CRLF line (GH-103926...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 21 Jul 2026 05:51:12 +0000 (07:51 +0200)
committerGitHub <noreply@github.com>
Tue, 21 Jul 2026 05:51:12 +0000 (05:51 +0000)
commit42459c98553247824f662d63249ab4efe7d1484b
tree0afc31ee9756dabf77ca740b5d326e14a14050ac
parent856c8119ea9d8f574dd56cf64afe19ee2e460c8b
[3.14] gh-103925: Fix csv.Sniffer for a quoted field ending a CRLF line (GH-103926) (GH-154323)

"$" does not match before "\r" even in the MULTILINE mode, so such a
field was not found and the delimiter was guessed from character
frequencies instead, which could give a letter.
(cherry picked from commit 70f7c6c0f2ddfd3b447946f1b926776b2a344703)

Co-authored-by: Zhou Wei <lilaboc.cn@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Lib/csv.py
Lib/test/test_csv.py
Misc/NEWS.d/next/Library/2023-04-27-14-50-03.gh-issue-103925.khC-El.rst [new file with mode: 0644]