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:
LiarPrincess 2022-09-28 15:57:14 +02:00 committed by GitHub
parent 5c110d1126
commit 0c1d7a06ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2256 additions and 2267 deletions

View File

@ -0,0 +1 @@
Removed duplicate '{0, 0, 0, 0, 0, 0}' entry in 'Objects/unicodetype_db.h'.

4520
Objects/unicodetype_db.h generated

File diff suppressed because it is too large Load Diff

View File

@ -417,7 +417,7 @@ def makeunicodetype(unicode, trace):
# extract unicode types # extract unicode types
dummy = (0, 0, 0, 0, 0, 0) dummy = (0, 0, 0, 0, 0, 0)
table = [dummy] table = [dummy]
cache = {0: dummy} cache = {dummy: 0}
index = [0] * len(unicode.chars) index = [0] * len(unicode.chars)
numeric = {} numeric = {}
spaces = [] spaces = []