summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2009-10-13 21:29:34 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2009-10-13 21:29:34 (GMT)
commit5c92d4301dae4ffa970ddc9e5064d88062c4a900 (patch)
treeb86488fbaaccbd02170e594d877e7ccf875dbbc1 /Tools
parent5ffa146fde4cecede81a760c85d4ea9511b1dcc1 (diff)
downloadcpython-5c92d4301dae4ffa970ddc9e5064d88062c4a900.zip
cpython-5c92d4301dae4ffa970ddc9e5064d88062c4a900.tar.gz
cpython-5c92d4301dae4ffa970ddc9e5064d88062c4a900.tar.bz2
#7112: Fix compilation warning in unicodetype_db.h
makeunicodedata now generates double literals
Diffstat (limited to 'Tools')
-rw-r--r--Tools/unicode/makeunicodedata.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tools/unicode/makeunicodedata.py b/Tools/unicode/makeunicodedata.py
index 92268ad..330eb2d 100644
--- a/Tools/unicode/makeunicodedata.py
+++ b/Tools/unicode/makeunicodedata.py
@@ -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()