Commit a59f0888 authored by Stefan Behnel's avatar Stefan Behnel

fix for unicode escapes (\u1234)

parent 5501bac4
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment