Ticket #52212: 001-hatari-gentypes-python3-fix.diff
File 001-hatari-gentypes-python3-fix.diff, 689 bytes (added by kenneth.f.cunningham@…, 8 years ago) |
---|
-
python-ui/gentypes.py
old new 21 21 # { "bConfirmQuit", Bool_Tag, &ConfigureParams.Log.bConfirmQuit } 22 22 reg = re.compile("\"([a-zA-Z0-9_]+)\",\s*([BIS][a-z]+)_Tag\s*,") 23 23 24 print "# content generated by %s" % os.path.basename(sys.argv[0])25 print "conftypes = {"24 print (("# content generated by %s") % os.path.basename(sys.argv[0])) 25 print ("conftypes = {") 26 26 27 27 for line in sys.stdin.readlines(): 28 28 match = reg.search(line) 29 29 if match: 30 print """ "%s": "%s",""" % match.groups()30 print (""" "%s": "%s",""" % match.groups()) 31 31 32 print "}"32 print ("}")