Fix comp_map.py for Python 3.x (Closes #26)

This commit is contained in:
Michael Hansen
2013-03-01 17:22:32 -08:00
parent 209970f668
commit 404993fb3c

View File

@@ -21,7 +21,7 @@ maplist = [ 10, 11, 13, 14, 15, 16,
for mapver in maplist:
infile = open('python_%d.map' % mapver, 'rt')
outfile = open('python_%d.cpp' % mapver, 'wb')
outfile = open('python_%d.cpp' % mapver, 'wt')
idToOpcode = {}
opcodeToId = {}