Commit 6ba9be3a authored by Stefan Behnel's avatar Stefan Behnel

fix #641: parsing of raw strings

parent 5c841ce3
...@@ -766,13 +766,6 @@ def p_string_literal(s, kind_override=None): ...@@ -766,13 +766,6 @@ def p_string_literal(s, kind_override=None):
has_non_ASCII_literal_characters = True has_non_ASCII_literal_characters = True
elif sy == 'ESCAPE': elif sy == 'ESCAPE':
if is_raw: if is_raw:
if systr == u'\\\n':
chars.append(u'\\\n')
elif systr == u'\\\"':
chars.append(u'"')
elif systr == u'\\\'':
chars.append(u"'")
else:
chars.append(systr) chars.append(systr)
if is_python3_source and not has_non_ASCII_literal_characters \ if is_python3_source and not has_non_ASCII_literal_characters \
and check_for_non_ascii_characters(systr): and check_for_non_ascii_characters(systr):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment