Commit 46d650c
committed
issue2551092 - fix crash due to use of string not bytes under py3
Align roundup.anypy.email_.decode_header which is a copy of the stdlib
email.header.decode_header by adding conversion of str to bytes for
py3.
rouilj: I was unable to figure out how to generate a test case for
this. Existing tests that use utf8 encoded subject line pass and in all
cases including the ones where I tried to craft a failing subject,
always were bytes and not strings.1 parent 3c11b1a commit 46d650c
2 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
| 111 | + | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments