]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] 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:57:38 +0000 (07:57 +0200)
committerGitHub <noreply@github.com>
Tue, 21 Jul 2026 05:57:38 +0000 (05:57 +0000)
commitc0129a07efd95e6290fdf87651aa5a88f7d86a97
tree4d3204032ef6f90cf05b61b932573b76b7daf661
parent8ba1b04b508d44900df63e6bb08031d0fb34fee2
[3.15] gh-103925: Fix csv.Sniffer for a quoted field ending a CRLF line (GH-103926) (GH-154322)

"$" 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]