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
........
This commit is contained in:
Amaury Forgeot d'Arc 2009-10-13 23:18:53 +00:00
parent d404fa6e1c
commit 919765a095
2 changed files with 114 additions and 109 deletions

View file

@ -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()