mirror of
https://github.com/python/cpython.git
synced 2025-10-26 11:14:33 +00:00
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
3 changed files with 2256 additions and 2267 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue