Roundup Tracker - Issues

Message6528

Author ezio.melotti
Recipients ezio.melotti, joseph_myers, rouilj
Date 2019-06-05.22:33:49
Message-id <1559774029.3.0.998829763558.issue2551008@roundup.psfhosted.org>
In-reply-to
Fixed in 9cc3257d0f.
decode_header sometimes returns bytes, sometimes unicode, so the patch
checks if the type is byte and tries to decode with either the given
encoding, utf-8, or iso-8859-1 if utf-8 fails.
The patch works on both Python 2 and 3.
History
Date User Action Args
2019-06-05 22:33:49ezio.melottisetmessageid: <1559774029.3.0.998829763558.issue2551008@roundup.psfhosted.org>
2019-06-05 22:33:49ezio.melottisetrecipients: + ezio.melotti, rouilj, joseph_myers
2019-06-05 22:33:49ezio.melottilinkissue2551008 messages
2019-06-05 22:33:49ezio.melotticreate