fix compilation with Python 3.9: avoid passing encoding to json.load()
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Wed, 24 Nov 2021 19:27:08 +0000 (19:27 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Wed, 24 Nov 2021 19:27:08 +0000 (19:27 +0000)
Origin: upstream, https://github.com/qtwebkit/qtwebkit/commit/78360c01c796b626
Last-Update: 2020-11-23

Gbp-Pq: Name python_3.9.diff

Source/JavaScriptCore/generate-bytecode-files

index c5dab429c7b0f97e863d0c339105780c74aab147..af3431275ecf9192d3abb27211471ed70ab4ed41 100644 (file)
@@ -163,7 +163,7 @@ if __name__ == "__main__":
         initBytecodesFile = openOrExit(initASMFileName, "w")
 
     try:
-        bytecodeSections = json.load(bytecodeFile, encoding = "utf-8")
+        bytecodeSections = json.load(bytecodeFile)
     except:
         print("Unexpected error parsing {0}: {1}".format(bytecodeJSONFile, sys.exc_info()))