]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-103925: Fix csv.Sniffer for a quoted field ending a CRLF line (GH-103926)
authorZhou Wei <lilaboc.cn@gmail.com>
Tue, 21 Jul 2026 05:24:21 +0000 (13:24 +0800)
committerGitHub <noreply@github.com>
Tue, 21 Jul 2026 05:24:21 +0000 (05:24 +0000)
commit70f7c6c0f2ddfd3b447946f1b926776b2a344703
tree124697cc9b4fb9a62dac0d25bbabfaef3e25b4ec
parent20b7e8e50b9a4a92989b36531429f9b51ee0a0bf
gh-103925: Fix csv.Sniffer for a quoted field ending a CRLF line (GH-103926)

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

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]