[issue18965] 2to3 can produce illegal bytes literals

2015-04-09 Thread R. David Murray
R. David Murray added the comment: Sorry, I meant the addition of the -3 warning. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue18965] 2to3 can produce illegal bytes literals

2015-04-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The addition of the warning in python3 is not related to this issue, because produced code even is not compiled in Python 3. But the addition of the warning in Python 2 made this issue less important. -- resolution: -> rejected stage: patch review -

[issue18965] 2to3 can produce illegal bytes literals

2015-04-09 Thread R. David Murray
R. David Murray added the comment: Does the addition of the warning in python3 make the fixer obsolete? In other words, should we close this issue? -- nosy: +r.david.murray ___ Python tracker

[issue18965] 2to3 can produce illegal bytes literals

2014-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Now Python 2 with the -3 option warns about b-prefixed strings with non-ASCII characters (issue19656). -- versions: +Python 3.5 -Python 3.3 ___ Python tracker __

[issue18965] 2to3 can produce illegal bytes literals

2013-10-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think it's too bad parsing of b-prefixed strings in Python 2 doesn't reject non-ASCII characters. -- ___ Python tracker ___ __

[issue18965] 2to3 can produce illegal bytes literals

2013-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Benjamin, what would you say about this? -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue18965] 2to3 can produce illegal bytes literals

2013-10-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file31952/2to3_nonascii_bytes.patch ___ Python tracker ___ ___ Python-bugs-

[issue18965] 2to3 can produce illegal bytes literals

2013-10-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Backported to 2.7. -- Added file: http://bugs.python.org/file31953/2to3_nonascii_bytes-2.7.patch ___ Python tracker ___ __

[issue18965] 2to3 can produce illegal bytes literals

2013-10-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added a test. -- Added file: http://bugs.python.org/file31952/2to3_nonascii_bytes.patch ___ Python tracker ___ ___

[issue18965] 2to3 can produce illegal bytes literals

2013-10-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file31657/2to3_nonascii_bytes.patch ___ Python tracker ___ ___ Python-bugs-

[issue18965] 2to3 can produce illegal bytes literals

2013-09-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue18965] 2to3 can produce illegal bytes literals

2013-09-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: 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.