]> git.pld-linux.org Git - packages/qt5-qtwebkit.git/blame - python3.9.patch
- builds fine without gstreamer-plugins-bad-devel
[packages/qt5-qtwebkit.git] / python3.9.patch
CommitLineData
8b34501f
MK
1From 78360c01c796b6260bf828bc9c8a0ef73c5132fd Mon Sep 17 00:00:00 2001
2From: Konstantin Tokarev <annulen@yandex.ru>
3Date: Wed, 3 Jun 2020 15:01:42 +0300
4Subject: [PATCH] Fix compilation with Python 3.9: avoid passing encoding to
5 json.load()
6
7In Python 2.7 UTF-8 is assumed by default, while in Python 3 this argument
8is not supported.
9
10Change-Id: Ic459d60a6b20bc1838d8771bc36ac41614fe61a9
11---
12 Source/JavaScriptCore/generate-bytecode-files | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/Source/JavaScriptCore/generate-bytecode-files b/Source/JavaScriptCore/generate-bytecode-files
16index c5dab429c7b0f..af3431275ecf9 100644
17--- a/Source/JavaScriptCore/generate-bytecode-files
18+++ b/Source/JavaScriptCore/generate-bytecode-files
19@@ -163,7 +163,7 @@ if __name__ == "__main__":
20 initBytecodesFile = openOrExit(initASMFileName, "w")
21
22 try:
23- bytecodeSections = json.load(bytecodeFile, encoding = "utf-8")
24+ bytecodeSections = json.load(bytecodeFile)
25 except:
26 print("Unexpected error parsing {0}: {1}".format(bytecodeJSONFile, sys.exc_info()))
27
This page took 0.336708 seconds and 4 git commands to generate.