diff options
author | LiarPrincess <michal.matuszczyk@me.com> | 2022-09-28 13:57:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-28 13:57:14 (GMT) |
commit | 0c1d7a06ed1a1802dbe8823d12b29c9500df0fcb (patch) | |
tree | 90467a3b1f6e244926d9d30e8d3582675f6fb2e1 /Tools/unicode | |
parent | 5c110d112600b679b4cf41b11d2b73653da60555 (diff) | |
download | cpython-0c1d7a06ed1a1802dbe8823d12b29c9500df0fcb.zip cpython-0c1d7a06ed1a1802dbe8823d12b29c9500df0fcb.tar.gz cpython-0c1d7a06ed1a1802dbe8823d12b29c9500df0fcb.tar.bz2 |
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
Diffstat (limited to 'Tools/unicode')
-rw-r--r-- | Tools/unicode/makeunicodedata.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/unicode/makeunicodedata.py b/Tools/unicode/makeunicodedata.py index 554392c..034642d 100644 --- a/Tools/unicode/makeunicodedata.py +++ b/Tools/unicode/makeunicodedata.py @@ -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 = [] |