Serhiy Storchaka added the comment:
I concur with Victor. Unlikely this affects many people since skipping messages
usually are ASCII strings.
As a workaround you can implement your own skip() method that encodes unicode
to 8-bit string.
def skip(self, reason):
if isinstance(reas
STINNER Victor added the comment:
> Could be fixed with by changing to unicode(e)
Replacing str(e) with unicode(e) can introduce Unicode errors regressions. I'm
not confident in doing such change late in the old 2.7 branch.
I suggest you to only use native strings (byte strings, "str" type) i