summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2009-10-13 23:18:53 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2009-10-13 23:18:53 (GMT)
commit919765a0950ffa3cb81a70c7223c6252f45b4d7f (patch)
tree0c38447d4d5b51e082a6a90e1ef2b1018c0a361e /Tools
parentd404fa6e1cae0d26dc3680c408f8a0084b47c8c0 (diff)
downloadcpython-919765a0950ffa3cb81a70c7223c6252f45b4d7f.zip
cpython-919765a0950ffa3cb81a70c7223c6252f45b4d7f.tar.gz
cpython-919765a0950ffa3cb81a70c7223c6252f45b4d7f.tar.bz2
Merged revisions 75396 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r75396 | amaury.forgeotdarc | 2009-10-13 23:29:34 +0200 (mar., 13 oct. 2009) | 3 lines #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 439a45b..454e435 100644
--- a/Tools/unicode/makeunicodedata.py
+++ b/Tools/unicode/makeunicodedata.py
@@ -479,6 +479,11 @@ def makeunicodetype(unicode, trace):
print('{', file=fp)
print(' switch (ch) {', file=fp)
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()