1# Patch for Python 3.x support, created with using 2to3 program. 2 3--- deps/mozilla/js/src/build/cl.py.orig 2014-05-17 17:57:43 UTC 4+++ deps/mozilla/js/src/build/cl.py 5@@ -51,7 +51,7 @@ def InvokeClWithDependencyGeneration(cmd 6 break 7 8 if target == None: 9- print >>sys.stderr, "No target set" and sys.exit(1) 10+ print("No target set" and sys.exit(1), file=sys.stderr) 11 12 # The deps target lives here 13 depstarget = os.path.basename(target) + ".pp" 14@@ -90,7 +90,7 @@ def InvokeClWithDependencyGeneration(cmd 15 16 f = open(depstarget, "w") 17 for dep in sorted(deps): 18- print >>f, "%s: %s" % (target, dep) 19+ print("%s: %s" % (target, dep), file=f) 20 21 if __name__ == "__main__": 22 InvokeClWithDependencyGeneration(sys.argv[1:]) 23--- deps/mozilla/js/src/imacro_asm.py.orig 2014-05-17 17:57:43 UTC 24+++ deps/mozilla/js/src/imacro_asm.py 25@@ -456,7 +456,7 @@ def assemble(filename, outfile): 26 if __name__ == '__main__': 27 import sys 28 if len(sys.argv) != 3: 29- print "usage: python imacro_asm.py infile.jsasm outfile.c.out" 30+ print("usage: python imacro_asm.py infile.jsasm outfile.c.out") 31 sys.exit(1) 32 33 f = open(sys.argv[2], 'w') 34