This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka, vinay.sajip
Date 2013-09-08.00:06:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In Python 2 string literals are allowed to contain non-ascii characters. In Python 3 bytes literals can contains only ascii characters, non-ascii characters should be escaped with \xXX. However 2to3 doesn't change b'...' literals and produces illegal code.

I propose new fixer which escapes non-ascii bytes in bytes literals. Here is a patch (without tests yet).
Date User Action Args
2013-09-08 00:06:39serhiy.storchakasetrecipients: + serhiy.storchaka, vinay.sajip
2013-09-08 00:06:39serhiy.storchakasetmessageid: <>
2013-09-08 00:06:39serhiy.storchakalinkissue18965 messages
2013-09-08 00:06:39serhiy.storchakacreate