mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
#7112: Fix compilation warning in unicodetype_db.h
makeunicodedata now generates double literals
This commit is contained in:
parent
5ffa146fde
commit
5c92d4301d
2 changed files with 114 additions and 109 deletions
|
@ -468,6 +468,11 @@ def makeunicodetype(unicode, trace):
|
|||
print >>fp, '{'
|
||||
print >>fp, ' switch (ch) {'
|
||||
for value, codepoints in numeric_items:
|
||||
# Turn text into float literals
|
||||
parts = value.split('/')
|
||||
parts = [repr(float(part)) for part in parts]
|
||||
value = '/'.join(parts)
|
||||
|
||||
haswide = False
|
||||
hasnonewide = False
|
||||
codepoints.sort()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue