mirror of https://github.com/python/cpython.git
bpo-47243: Duplicate entry in 'Objects/unicodetype_db.h' (GH-32376)
Fix for duplicate 1st entry in 'Objects/unicodetype_db.h': ```c /* a list of unique character type descriptors */ const _PyUnicode_TypeRecord _PyUnicode_TypeRecords[] = { {0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0}, <--- HERE {0, 0, 0, 0, 0, 32}, {0, 0, 0, 0, 0, 48}, … ``` https://bugs.python.org/issue47243 Automerge-Triggered-By: GH:isidentical
This commit is contained in:
parent
5c110d1126
commit
0c1d7a06ed
|
@ -0,0 +1 @@
|
|||
Removed duplicate '{0, 0, 0, 0, 0, 0}' entry in 'Objects/unicodetype_db.h'.
|
File diff suppressed because it is too large
Load Diff
|
@ -417,7 +417,7 @@ def makeunicodetype(unicode, trace):
|
|||
# extract unicode types
|
||||
dummy = (0, 0, 0, 0, 0, 0)
|
||||
table = [dummy]
|
||||
cache = {0: dummy}
|
||||
cache = {dummy: 0}
|
||||
index = [0] * len(unicode.chars)
|
||||
numeric = {}
|
||||
spaces = []
|
||||
|
|
Loading…
Reference in New Issue