From: Stefan Behnel Date: Wed, 12 Jan 2011 21:13:43 +0000 (+0100) Subject: fix #641: parsing of raw strings X-Git-Tag: 0.14.1rc0~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6ba9be3a3e32d5c6a7d7dc3f8956f4f2fa0c5db1;p=cython.git fix #641: parsing of raw strings --- diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 3c314623..938683d4 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -766,17 +766,10 @@ def p_string_literal(s, kind_override=None): has_non_ASCII_literal_characters = True elif sy == 'ESCAPE': 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) - if is_python3_source and not has_non_ASCII_literal_characters \ - and check_for_non_ascii_characters(systr): - has_non_ASCII_literal_characters = True + chars.append(systr) + if is_python3_source and not has_non_ASCII_literal_characters \ + and check_for_non_ascii_characters(systr): + has_non_ASCII_literal_characters = True else: c = systr[1] if c in u"01234567":