]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-103925: Fix csv.Sniffer for a quoted field ending a CRLF line (GH-103926...
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 21 Jul 2026 06:04:22 +0000 (09:04 +0300)
committerGitHub <noreply@github.com>
Tue, 21 Jul 2026 06:04:22 +0000 (06:04 +0000)
commit0bc65955825e404ae74c780daf289528cae357e0
treef415e5dd073157c4b9de4f670028753a58f47f6b
parentb8d315182c54cc2b2fc96d570a648bad0ead0549
[3.13] gh-103925: Fix csv.Sniffer for a quoted field ending a CRLF line (GH-103926) (GH-154330)

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