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)

python3 fix for files/

  • python-ui/gentypes.py

    old new  
    2121# { "bConfirmQuit", Bool_Tag, &ConfigureParams.Log.bConfirmQuit }
    2222reg = re.compile("\"([a-zA-Z0-9_]+)\",\s*([BIS][a-z]+)_Tag\s*,")
    2323
    24 print "# content generated by %s" % os.path.basename(sys.argv[0])
    25 print "conftypes = {"
     24print (("# content generated by %s") % os.path.basename(sys.argv[0]))
     25print ("conftypes = {")
    2626
    2727for line in sys.stdin.readlines():
    2828    match = reg.search(line)
    2929    if match:
    30         print """    "%s": "%s",""" % match.groups()
     30        print ("""    "%s": "%s",""" % match.groups())
    3131
    32 print "}"
     32print ("}")