summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/fixes/fix_unicode.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-10-08 18:27:35 (GMT)
committerGeorg Brandl <georg@python.org>2013-10-08 18:27:35 (GMT)
commit65087aec17a465aff3ee5e78fc70d7b9430e6c56 (patch)
tree3b580d773047175984b7c3046a879c884a1c8aee /Lib/lib2to3/fixes/fix_unicode.py
parentfe9e3b8e215c62cfcc4d8dc27bfd4586f8c6e4c2 (diff)
parent1322f9e2d1a546328e53aa7d037bc37c3b47fc2e (diff)
downloadcpython-65087aec17a465aff3ee5e78fc70d7b9430e6c56.zip
cpython-65087aec17a465aff3ee5e78fc70d7b9430e6c56.tar.gz
cpython-65087aec17a465aff3ee5e78fc70d7b9430e6c56.tar.bz2
merge heads
Diffstat (limited to 'Lib/lib2to3/fixes/fix_unicode.py')
-rw-r--r--Lib/lib2to3/fixes/fix_unicode.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/lib2to3/fixes/fix_unicode.py b/Lib/lib2to3/fixes/fix_unicode.py
index 6555397..c7982c2 100644
--- a/Lib/lib2to3/fixes/fix_unicode.py
+++ b/Lib/lib2to3/fixes/fix_unicode.py
@@ -28,8 +28,7 @@ class FixUnicode(fixer_base.BaseFix):
return new
elif node.type == token.STRING:
val = node.value
- if (not self.unicode_literals and val[0] in 'rR\'"' and
- '\\' in val):
+ if not self.unicode_literals and val[0] in '\'"' and '\\' in val:
val = r'\\'.join([
v.replace('\\u', r'\\u').replace('\\U', r'\\U')
for v in val.split(r'\\')