mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Reverted r62128 on Guido's orders
This commit is contained in:
parent
247bd2efd8
commit
8dbca06b22
2 changed files with 1 additions and 3 deletions
|
@ -68,8 +68,6 @@ class UnicodeTest(
|
||||||
self.assertRaises(SyntaxError, eval, '\'\\Ufffffffe\'')
|
self.assertRaises(SyntaxError, eval, '\'\\Ufffffffe\'')
|
||||||
self.assertRaises(SyntaxError, eval, '\'\\Uffffffff\'')
|
self.assertRaises(SyntaxError, eval, '\'\\Uffffffff\'')
|
||||||
self.assertRaises(SyntaxError, eval, '\'\\U%08x\'' % 0x110000)
|
self.assertRaises(SyntaxError, eval, '\'\\U%08x\'' % 0x110000)
|
||||||
# Test that raw mode does unicode escapes
|
|
||||||
self.assertEqual(r"\u0020", " ")
|
|
||||||
|
|
||||||
def test_repr(self):
|
def test_repr(self):
|
||||||
if not sys.platform.startswith('java'):
|
if not sys.platform.startswith('java'):
|
||||||
|
|
|
@ -3231,7 +3231,7 @@ parsestr(struct compiling *c, const node *n, int *bytesmode)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!*bytesmode) {
|
if (!*bytesmode && !rawmode) {
|
||||||
return decode_unicode(s, len, rawmode, c->c_encoding);
|
return decode_unicode(s, len, rawmode, c->c_encoding);
|
||||||
}
|
}
|
||||||
if (*bytesmode) {
|
if (*bytesmode) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue