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 <1378598799.8.0.0499553446902.issue18965@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2013-09-08 00:06:39serhiy.storchakasetrecipients: + serhiy.storchaka, vinay.sajip
2013-09-08 00:06:39serhiy.storchakasetmessageid: <1378598799.8.0.0499553446902.issue18965@psf.upfronthosting.co.za>
2013-09-08 00:06:39serhiy.storchakalinkissue18965 messages
2013-09-08 00:06:39serhiy.storchakacreate