diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2009-10-13 23:18:53 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2009-10-13 23:18:53 (GMT) |
commit | 919765a0950ffa3cb81a70c7223c6252f45b4d7f (patch) | |
tree | 0c38447d4d5b51e082a6a90e1ef2b1018c0a361e /Tools | |
parent | d404fa6e1cae0d26dc3680c408f8a0084b47c8c0 (diff) | |
download | cpython-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.py | 5 |
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() |