diff options
| author | Konstantin Tokarev <annulen@yandex.ru> | 2020-02-25 22:21:50 +0300 |
|---|---|---|
| committer | Konstantin Tokarev <annulen@yandex.ru> | 2020-02-25 22:24:39 +0300 |
| commit | cd875b317ba9ef63f946d2a07b7e67c1e05f93ac (patch) | |
| tree | 807d09de3cd29ff85cb6ecb0f6ded0271f14e12d /Source/JavaScriptCore/generate-bytecode-files | |
| parent | 4f0fa41c49404871e361370baf1cf62029177b94 (diff) | |
| download | qtwebkit-cd875b317ba9ef63f946d2a07b7e67c1e05f93ac.tar.gz | |
Import QtWebKit commit 887b98440a46eb30f8a1998e930ddd9218934e1e
Change-Id: I87077d70c358887aa76233566c2e864d1eeb8f73
Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
Diffstat (limited to 'Source/JavaScriptCore/generate-bytecode-files')
| -rw-r--r-- | Source/JavaScriptCore/generate-bytecode-files | 8 |
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) |
