mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Rename 'unicode' to 'str' in its tp_name field. Rename 'str' to 'str8'.
Change all occurrences of unichr to chr.
This commit is contained in:
parent
ef87d6ed94
commit
84fc66dd02
17 changed files with 45 additions and 66 deletions
|
|
@ -96,7 +96,7 @@ class UnicodeNamesTest(unittest.TestCase):
|
|||
import unicodedata
|
||||
count = 0
|
||||
for code in xrange(0x10000):
|
||||
char = unichr(code)
|
||||
char = chr(code)
|
||||
name = unicodedata.name(char, None)
|
||||
if name is not None:
|
||||
self.assertEqual(unicodedata.lookup(name), char)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue