From a59f0888e86a397e4d73d74cae471879a4d96651 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 5 Mar 2008 16:12:53 +0100 Subject: [PATCH] fix for unicode escapes (\u1234) --- Cython/Compiler/Parsing.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 5a684204..62670782 100644 --- 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 -- 2.26.2