qt5-webkit-python-3.9.patch 1.1 KB

12345678910111213141516171819202122232425262728
  1. From 78360c01c796b6260bf828bc9c8a0ef73c5132fd Mon Sep 17 00:00:00 2001
  2. From: Konstantin Tokarev <annulen@yandex.ru>
  3. Date: Wed, 3 Jun 2020 15:01:42 +0300
  4. Subject: [PATCH] Fix compilation with Python 3.9: avoid passing encoding to
  5. json.load()
  6. In Python 2.7 UTF-8 is assumed by default, while in Python 3 this argument
  7. is not supported.
  8. Change-Id: Ic459d60a6b20bc1838d8771bc36ac41614fe61a9
  9. ---
  10. Source/JavaScriptCore/generate-bytecode-files | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/Source/JavaScriptCore/generate-bytecode-files b/Source/JavaScriptCore/generate-bytecode-files
  13. index c5dab429c7b0f..af3431275ecf9 100644
  14. --- a/Source/JavaScriptCore/generate-bytecode-files
  15. +++ b/Source/JavaScriptCore/generate-bytecode-files
  16. @@ -163,7 +163,7 @@ if __name__ == "__main__":
  17. initBytecodesFile = openOrExit(initASMFileName, "w")
  18. try:
  19. - bytecodeSections = json.load(bytecodeFile, encoding = "utf-8")
  20. + bytecodeSections = json.load(bytecodeFile)
  21. except:
  22. print("Unexpected error parsing {0}: {1}".format(bytecodeJSONFile, sys.exc_info()))