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

Vinay Sajip report at bugs.python.org
Wed May 22 23:46:44 CEST 2013


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 looks like a
truncated Unicode escape.
"""

----------
components: 2to3 (2.x to 3.x conversion tool)
messages: 189837
nosy: benjamin.peterson, vinay.sajip
priority: normal
severity: normal
status: open
title: 2to3 passes through string literal which causes SyntaxError in 3.x
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18037>
_______________________________________


More information about the New-bugs-announce mailing list