mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
Update to Unicode 3.2 database.
This commit is contained in:
parent
ecbb0eaa43
commit
9def6a3a77
8 changed files with 14036 additions and 9469 deletions
|
@ -448,7 +448,7 @@ class UnicodeData:
|
|||
|
||||
def __init__(self, filename, expand=1):
|
||||
file = open(filename)
|
||||
table = [None] * 65536
|
||||
table = [None] * 0x110000
|
||||
while 1:
|
||||
s = file.readline()
|
||||
if not s:
|
||||
|
@ -476,7 +476,7 @@ class UnicodeData:
|
|||
# public attributes
|
||||
self.filename = filename
|
||||
self.table = table
|
||||
self.chars = range(65536) # unicode
|
||||
self.chars = range(0x110000) # unicode 3.2
|
||||
|
||||
def uselatin1(self):
|
||||
# restrict character range to ISO Latin 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue