[issue18037] 2to3 passes through string literal which causes SyntaxError in 3.x

2013-10-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset c498d1090970 by Serhiy Storchaka in branch '2.7': Issue #18037: Do not escape '\u' and '\U' in raw strings. http://hg.python.org/cpython/rev/c498d1090970 New changeset acb2dacd0d24 by Serhiy Storchaka in branch '3.3': Issue #18037: Do not escape

[issue18037] 2to3 passes through string literal which causes SyntaxError in 3.x

2013-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Arfrever. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18037 ___

[issue18037] 2to3 passes through string literal which causes SyntaxError in 3.x

2013-10-07 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: These revisions also introduced escaping of \u and \U in raw literals, which is incorrect. It breaks e.g. Sphinx. -- resolution: fixed - stage: committed/rejected - status: closed - open ___

[issue18037] 2to3 passes through string literal which causes SyntaxError in 3.x

2013-10-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5e8de100f708 by Serhiy Storchaka in branch '2.7': Issue #18037: 2to3 now escapes '\u' and '\U' in native strings. http://hg.python.org/cpython/rev/5e8de100f708 New changeset 5950dd4cd9ef by Serhiy Storchaka in branch '3.3': Issue #18037: 2to3 now

[issue18037] 2to3 passes through string literal which causes SyntaxError in 3.x

2013-10-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18037

[issue18037] 2to3 passes through string literal which causes SyntaxError in 3.x

2013-10-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is the patch good to you Benjamin? I'm not very experienced in 2to3 machinery. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18037 ___

[issue18037] 2to3 passes through string literal which causes SyntaxError in 3.x

2013-10-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: That seems fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18037 ___ ___ Python-bugs-list mailing list

[issue18037] 2to3 passes through string literal which causes SyntaxError in 3.x

2013-10-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18037 ___ ___

[issue18037] 2to3 passes through string literal which causes SyntaxError in 3.x

2013-09-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch against 2.7. What is the policy about changing 2to3 in 3.x? -- keywords: +patch stage: - patch review versions: +Python 3.3, Python 3.4 Added file: http://bugs.python.org/file31654/2to3_escape_u-2.7.patch

[issue18037] 2to3 passes through string literal which causes SyntaxError in 3.x

2013-09-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: You can change 2to3 in 3.x. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18037 ___ ___ Python-bugs-list

[issue18037] 2to3 passes through string literal which causes SyntaxError in 3.x

2013-05-22 Thread Vinay Sajip
New submission from Vinay Sajip: This string contains DOMAIN\username, which is talking about Windows and is a valid string in Python 2.x but not in 3.x. However, 2to3 passes this string through unchanged, and it causes a SyntaxError when interpreted by Python 3.x, because it contains what

[issue18037] 2to3 passes through string literal which causes SyntaxError in 3.x

2013-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: However r'DOMAIN\username' is valid in 3.x (if this is not a regular expression in 3.3+). It would be good to emit a warning in Python 2 with -3 option. Or perhaps even emit a warning about any non-known escape in non-raw strings. -- nosy:

[issue18037] 2to3 passes through string literal which causes SyntaxError in 3.x

2013-05-22 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18037 ___