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

string escaping bugs

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