projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55957b2
)
fix raw string escapes
author
Stefan Behnel
<scoder@users.berlios.de>
Tue, 12 Aug 2008 12:27:16 +0000
(14:27 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Tue, 12 Aug 2008 12:27:16 +0000
(14:27 +0200)
Cython/Compiler/Parsing.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Parsing.py
b/Cython/Compiler/Parsing.py
index 18da59b2aeac97952f774dce70d397503eb90f8a..836ab3dd4395aa033ff4f530f6bfefdf456233e1 100644
(file)
--- 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: