diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2009-10-13 21:29:34 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2009-10-13 21:29:34 (GMT) |
commit | 5c92d4301dae4ffa970ddc9e5064d88062c4a900 (patch) | |
tree | b86488fbaaccbd02170e594d877e7ccf875dbbc1 /Tools | |
parent | 5ffa146fde4cecede81a760c85d4ea9511b1dcc1 (diff) | |
download | cpython-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.py | 5 |
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() |