Matthew Barnett <pyt...@mrabarnett.plus.com> added the comment:
You wrote "the u had already been removed by hand". By removing the u in the _Python 2_ code, you changed that string from a Unicode string to a bytestring. In a bytestring, \uXXXX is not an escape; b"\u0000" == b"\\u0000". ---------- nosy: +mrabarnett _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37996> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com