Commit 85fee25b authored by Robert Bradshaw's avatar Robert Bradshaw

string escaping bugs

parent 309e3a2d
...@@ -622,7 +622,7 @@ def p_string_literal(s): ...@@ -622,7 +622,7 @@ def p_string_literal(s):
strval = systr strval = systr
chars.append(strval) chars.append(strval)
else: else:
chars.append(r'\\' + systr[1:]) chars.append('\\' + systr[1:])
elif sy == 'NEWLINE': elif sy == 'NEWLINE':
chars.append('\n') chars.append('\n')
elif sy == 'END_STRING': elif sy == 'END_STRING':
......
...@@ -4,8 +4,8 @@ __doc__ = u""" ...@@ -4,8 +4,8 @@ __doc__ = u"""
>>> test_unicode_ascii(2) >>> test_unicode_ascii(2)
u'c' u'c'
>>> test_unicode(2) >>> test_unicode(2) == u'\u00e4'
u'\u00e4' True
>>> test_int_list(2) >>> test_int_list(2)
3 3
......
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