summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/generate-bytecode-files
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/generate-bytecode-files')
-rw-r--r--Source/JavaScriptCore/generate-bytecode-files8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/JavaScriptCore/generate-bytecode-files b/Source/JavaScriptCore/generate-bytecode-files
index 5666a3f92..c5dab429c 100644
--- a/Source/JavaScriptCore/generate-bytecode-files
+++ b/Source/JavaScriptCore/generate-bytecode-files
@@ -91,7 +91,7 @@ def openOrExit(path, mode):
try:
return open(path, mode)
except IOError as e:
- print "I/O error opening {0}, ({1}): {2}".format(path, e.errno, e.strerror)
+ print("I/O error opening {0}, ({1}): {2}".format(path, e.errno, e.strerror))
exit(1)
def hashFile(file):
@@ -157,15 +157,15 @@ if __name__ == "__main__":
exit(0)
if bytecodeHFilename:
- bytecodeHFile = openOrExit(bytecodeHFilename, "wb")
+ bytecodeHFile = openOrExit(bytecodeHFilename, "w")
if initASMFileName:
- initBytecodesFile = openOrExit(initASMFileName, "wb")
+ initBytecodesFile = openOrExit(initASMFileName, "w")
try:
bytecodeSections = json.load(bytecodeFile, encoding = "utf-8")
except:
- print "Unexpected error parsing {0}: {1}".format(bytecodeJSONFile, sys.exc_info())
+ print("Unexpected error parsing {0}: {1}".format(bytecodeJSONFile, sys.exc_info()))
if bytecodeHFilename:
bytecodeHFile.write(hFileHashString)