projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5501bac
)
fix for unicode escapes (\u1234)
author
Stefan Behnel
<scoder@users.berlios.de>
Wed, 5 Mar 2008 15:12:53 +0000
(16:12 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Wed, 5 Mar 2008 15:12:53 +0000
(16:12 +0100)
Cython/Compiler/Parsing.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Parsing.py
b/Cython/Compiler/Parsing.py
index 5a684204bfbfe4955170e30fd5651c235bb156a5..62670782f9c9cb9080c63586bc1d3bb3e74923fd 100644
(file)
--- a/
Cython/Compiler/Parsing.py
+++ b/
Cython/Compiler/Parsing.py
@@
-584,10
+584,9
@@
def p_string_literal(s):
"Unexpected token %r:%r in string literal" %
(sy, s.systring))
s.next()
+ value = ''.join(chars)
if kind == 'u':
- value = u''.join(chars)
- else:
- value = ''.join(chars)
+ value = value.decode('raw_unicode_escape')
#print "p_string_literal: value =", repr(value) ###
return kind, value