summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/m6502/m6502make.py
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2015-07-30 11:44:44 +0200
committer Olivier Galibert <galibert@pobox.com>2015-07-30 11:44:43 +0200
commit4b1e08c1bb282af1f3b09d992bf006a58908eee6 (patch)
tree4e38421b8aa166abc1d2f674743af7874ff238b7 /src/emu/cpu/m6502/m6502make.py
parent93bd0f0daf4bce350dc66071799edb38812a8d2f (diff)
python: Make all scripts python 2/3 compatible
Diffstat (limited to 'src/emu/cpu/m6502/m6502make.py')
-rwxr-xr-xsrc/emu/cpu/m6502/m6502make.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/emu/cpu/m6502/m6502make.py b/src/emu/cpu/m6502/m6502make.py
index 591d01268ca..4ac62e90ce9 100755
--- a/src/emu/cpu/m6502/m6502make.py
+++ b/src/emu/cpu/m6502/m6502make.py
@@ -1,5 +1,7 @@
#!/usr/bin/python
+from __future__ import print_function
+
USAGE = """
Usage:
%s device_name {opc.lst|-} disp.lst device.inc
@@ -52,7 +54,7 @@ def load_disp(fname):
def emit(f, text):
"""write string to file"""
- print >>f, text,
+ print(text, file=f)
FULL_PROLOG="""\
void %(device)s::%(opcode)s_full()
@@ -252,7 +254,7 @@ def main(argv):
if len(argv) != 5:
- print USAGE % argv[0]
+ print(USAGE % argv[0])
return 1
device_name = argv[1]