Commit 87913c6
committed
bpo-40837: Fix email.utils.encode_rfc2231(string, None, None)
encode_rfc2231() must not change the returned value if no transformation of the input was done.
This is also mentioned in the docstring of that function.
Actual behavior:
encode_rfc2231('foo bar', None, None)
'foo%20bar'
Expected behavior:
encode_rfc2231('foo bar', None, None)
'foo bar'1 parent 0b20bff commit 87913c6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
385 | 384 | | |
386 | 385 | | |
| 386 | + | |
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
| |||
0 commit comments