]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-148192: Fix Generator._make_boundary behavior with CRLF line endings. ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 14 Apr 2026 16:21:55 +0000 (18:21 +0200)
committerGitHub <noreply@github.com>
Tue, 14 Apr 2026 16:21:55 +0000 (12:21 -0400)
commit5a4143a392a64dbecec8f5718ef43b87cd15915e
treefac3897f1e73e90f0d95c41e8e3c5bbb05ca308b
parent63c9aa60a6f9eec69954f5c21fbdda687fb9e8d9
[3.13] gh-148192: Fix Generator._make_boundary behavior with CRLF line endings. (GH-148193) (#148549)

The Generator._make_boundary regex did not match on boundary phrases correctly when using CRLF line endings due to re.MULTILINE not considering \r\n as a line ending.
(cherry picked from commit 4af46b4ab5af49d8df034320a9a70fcbb062f7cf)

Co-authored-by: Henry Jones <44321887+henryivesjones@users.noreply.github.com>
Lib/email/generator.py
Lib/test/test_email/test_generator.py
Misc/NEWS.d/next/Library/2026-04-07-14-13-40.gh-issue-148192.34AUYQ.rst [new file with mode: 0644]