summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/blink/renderer/build/scripts/make_runtime_features.py
diff options
context:
space:
mode:
authorMichael BrĂ¼ning <michael.bruning@qt.io>2023-11-17 14:09:21 +0100
committerMichael BrĂ¼ning <michael.bruning@qt.io>2024-03-22 11:57:56 +0000
commit68302c9ea158fbc83cd28570a0560e5a892b45e8 (patch)
tree08c0039e3f33730a05ca4ef2340641a67419c009 /chromium/third_party/blink/renderer/build/scripts/make_runtime_features.py
parent38655f07d8ef13eb067e3a29bb3a0c2dc0b19716 (diff)
Enable building with Python 3
Port and fix up the patch used by the Debian project, see https://salsa.debian.org/qt-kde-team/qt/qtwebengine/-/blob/0db62e47f0e2f5e4e00193b65da912fe0083088c/debian/patches/chromium-python3.patch which in turn was largely based on a patch from ArchLinux: https://github.com/archlinux/svntogit-packages/blob/packages/qt5-webengine/trunk/qt5-webengine-chromium-python3.patch Also contains upgrades of six and catapult to build with Python 3.11 and 3.12, plus some other additional fixes, e.g. for macOS builds. Change-Id: I6b999505150495caabdcf05f6e4c7af588eff7ee Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/542809 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/build/scripts/make_runtime_features.py')
-rwxr-xr-xchromium/third_party/blink/renderer/build/scripts/make_runtime_features.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/build/scripts/make_runtime_features.py b/chromium/third_party/blink/renderer/build/scripts/make_runtime_features.py
index cafe8d94a8e..6925a4fa580 100755
--- a/chromium/third_party/blink/renderer/build/scripts/make_runtime_features.py
+++ b/chromium/third_party/blink/renderer/build/scripts/make_runtime_features.py
@@ -138,7 +138,7 @@ class RuntimeFeatureWriter(BaseRuntimeFeatureWriter):
except Exception:
# If trouble unpickling, overwrite
pass
- with open(os.path.abspath(file_name), 'w') as pickle_file:
+ with open(os.path.abspath(file_name), 'wb') as pickle_file:
pickle.dump(features_map, pickle_file)
def _template_inputs(self):