Matthew Barnett added the comment: So, you write a string literal without a 'u' (or 'b') prefix, and there's no 'from __future__ import unicode_literals' in the module, so you expect it to be a bytestring, but it's not, it's a Unicode string.
I'm not surprised that something breaks! ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25581> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com