Commit 0530f10
[3.13] pythongh-145831: email.quoprimime:
decoded[:-1] only strips one character, leaving a stray \r when eol
is two characters. Fix: decoded[:-len(eol)].
(cherry picked from commit 1a0edb1)
Co-authored-by: Stefan Zetzsche <120379523+stefanzetzsche@users.noreply.github.com>decode() leaves stray \r when eol='\r\n' (pythonGH-145832) (python#148311)1 parent fe08867 commit 0530f10
File tree
3 files changed
+12
-1
lines changed- Lib
- email
- test/test_email
- Misc/NEWS.d/next/Library
3 files changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4802 | 4802 | | |
4803 | 4803 | | |
4804 | 4804 | | |
| 4805 | + | |
| 4806 | + | |
| 4807 | + | |
| 4808 | + | |
| 4809 | + | |
| 4810 | + | |
| 4811 | + | |
| 4812 | + | |
| 4813 | + | |
4805 | 4814 | | |
4806 | 4815 | | |
4807 | 4816 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments