Author belopolsky
Recipients belopolsky, ezio.melotti, lemburg, loewis
Date 2010-11-27.23:02:24
SpamBayes Score 2.25555e-07
Marked as misclassified No
Message-id <1290898946.43.0.43457494444.issue10552@psf.upfronthosting.co.za>
In-reply-to
Content
Attached patch uses MISSING_CODE as Mark suggested.  There are still errors apparently because parsecodes() may return either an int or a tuple.  I think only mac encodings are affected, so I would like to commit the current patch before tackling this issue. 

$ ../../python.exe  gencodec.py MAPPINGS/VENDORS/APPLE/ build/ mac_
converting ARABIC.TXT to build/mac_arabic.py and build/mac_arabic.mapping
converting CELTIC.TXT to build/mac_celtic.py and build/mac_celtic.mapping
converting CENTEURO.TXT to build/mac_centeuro.py and build/mac_centeuro.mapping
converting CHINSIMP.TXT to build/mac_chinsimp.py and build/mac_chinsimp.mapping
Traceback (most recent call last):
  File "gencodec.py", line 424, in <module>
    convertdir(*sys.argv[1:])
  File "gencodec.py", line 394, in convertdir
    pymap(mappathname, map, dirprefix + codefile,name,comments)
  File "gencodec.py", line 358, in pymap
    code = codegen(name,map,encodingname,comments)
  File "gencodec.py", line 271, in codegen
    precisions=(4, 2))
  File "gencodec.py", line 155, in python_mapdef_code
    mappings = sorted(map.items())
TypeError: unorderable types: tuple() < int()
History
Date User Action Args
2010-11-27 23:02:26belopolskysetrecipients: + belopolsky, lemburg, loewis, ezio.melotti
2010-11-27 23:02:26belopolskysetmessageid: <1290898946.43.0.43457494444.issue10552@psf.upfronthosting.co.za>
2010-11-27 23:02:25belopolskylinkissue10552 messages
2010-11-27 23:02:24belopolskycreate