Skip to content

[3.13] gh-103925: Fix csv.Sniffer for a quoted field ending a CRLF line (GH-103926)#154330

Merged
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-70f7c6c-3.13
Jul 21, 2026
Merged

[3.13] gh-103925: Fix csv.Sniffer for a quoted field ending a CRLF line (GH-103926)#154330
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-70f7c6c-3.13

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jul 21, 2026

Copy link
Copy Markdown
Member

"$" 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 70f7c6c)

Co-authored-by: Zhou Wei lilaboc.cn@gmail.com
Co-authored-by: Serhiy Storchaka storchaka@gmail.com

…RLF line (pythonGH-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.

(cherry picked from commit 70f7c6c)

Co-authored-by: Zhou Wei <lilaboc.cn@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) July 21, 2026 06:04
@serhiy-storchaka
serhiy-storchaka merged commit 0bc6595 into python:3.13 Jul 21, 2026
42 of 45 checks passed
@serhiy-storchaka
serhiy-storchaka deleted the backport-70f7c6c-3.13 branch July 21, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants