From: Stefan Behnel Date: Tue, 12 Aug 2008 12:27:16 +0000 (+0200) Subject: fix raw string escapes X-Git-Tag: 0.9.8.1~58 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c3d75bde7b2297fc33a85a1d6e47d9a10cd13c58;p=cython.git fix raw string escapes --- diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 18da59b2..836ab3dd 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -590,13 +590,11 @@ def p_string_literal(s): systr = s.systring if is_raw: if systr == '\\\n': - chars.append('\n') + chars.append('\\\n') elif systr == '\\\"': chars.append('"') elif systr == '\\\'': chars.append("'") - elif systr == '\\\\': - chars.append('\\') else: chars.append(systr) else: