From c3d75bde7b2297fc33a85a1d6e47d9a10cd13c58 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Tue, 12 Aug 2008 14:27:16 +0200 Subject: [PATCH] fix raw string escapes --- Cython/Compiler/Parsing.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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: -- 2.26.2