Message6505
As part of: issue2551008 I am adding some bs2b calls in the
roundup/anypy/email_.py in decode_header to make sure that it always
returns byte strings.
All returns of tuples get a bs2b around the first (header value)
element.
One place I am not sure about is this code:
if hasattr(header, '_chunks'):
+ # FIXME do we need bs2b around _charset??
return [(_charset._encode(string, str(charset)), str(charset))
for string, charset in header._chunks]
do we need a bs2b around the return of _charset? AFAICT there is no
test code that exercises this code. |
|
Date |
User |
Action |
Args |
2019-06-03 02:02:49 | rouilj | set | messageid: <1559527369.24.0.675937520806.issue2550974@roundup.psfhosted.org> |
2019-06-03 02:02:49 | rouilj | set | recipients:
+ rouilj, joseph_myers |
2019-06-03 02:02:49 | rouilj | link | issue2550974 messages |
2019-06-03 02:02:49 | rouilj | create | |
|