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
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
___
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
___
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
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
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
___
Benjamin Peterson added the comment:
That seems fine.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18037
___
___
Python-bugs-list mailing list
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18037
___
___
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
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
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
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:
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18037
___
13 matches
Mail list logo