Message197205
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:39 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vinay.sajip |
2013-09-08 00:06:39 | serhiy.storchaka | set | messageid: <1378598799.8.0.0499553446902.issue18965@psf.upfronthosting.co.za> |
2013-09-08 00:06:39 | serhiy.storchaka | link | issue18965 messages |
2013-09-08 00:06:39 | serhiy.storchaka | create | |
|