Skip to content

Commit

Permalink
Reverted r62128 on Guido's orders
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminp committed Apr 5, 2008
1 parent 247bd2e commit 8dbca06
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions Lib/test/test_unicode.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ def test_literals(self):
self.assertRaises(SyntaxError, eval, '\'\\Ufffffffe\'')
self.assertRaises(SyntaxError, eval, '\'\\Uffffffff\'')
self.assertRaises(SyntaxError, eval, '\'\\U%08x\'' % 0x110000)
# Test that raw mode does unicode escapes
self.assertEqual(r"\u0020", " ")

def test_repr(self):
if not sys.platform.startswith('java'):
Expand Down
2 changes: 1 addition & 1 deletion Python/ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -3231,7 +3231,7 @@ parsestr(struct compiling *c, const node *n, int *bytesmode)
return NULL;
}
}
if (!*bytesmode) {
if (!*bytesmode && !rawmode) {
return decode_unicode(s, len, rawmode, c->c_encoding);
}
if (*bytesmode) {
Expand Down

0 comments on commit 8dbca06

Please sign in to comment.