[code-health] Migrate //third_party/wpt_tools/PRESUBMIT.py to python3
Bug: 1212087 Change-Id: I7323ddc55a9e1845f0cdef5a639b1e8c4d4bb8a3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2976443 Commit-Queue: Fabrice de Gans <fdegans@chromium.org> Commit-Queue: Stephen McGruer <smcgruer@chromium.org> Auto-Submit: Fabrice de Gans <fdegans@chromium.org> Reviewed-by: Stephen McGruer <smcgruer@chromium.org> Cr-Commit-Position: refs/heads/master@{#894395}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
bb89dc3106
commit
d7ccea738a
3
third_party/wpt_tools/PRESUBMIT.py
vendored
3
third_party/wpt_tools/PRESUBMIT.py
vendored
@ -8,6 +8,7 @@ This PRESUBMIT guards against rolling a broken version of WPT tooling. It does
|
||||
some smoke checks of WPT functionality.
|
||||
"""
|
||||
|
||||
USE_PYTHON3 = True
|
||||
|
||||
def _TestWPTLint(input_api, output_api):
|
||||
# We test 'wpt lint' by deferring to the web_tests/external presubmit test,
|
||||
@ -36,7 +37,7 @@ def _TestWPTManifest(input_api, output_api):
|
||||
|
||||
base_manifest = input_api.os_path.join(
|
||||
blink_path, 'web_tests', 'external', 'WPT_BASE_MANIFEST_8.json')
|
||||
with input_api.CreateTemporaryFile() as f:
|
||||
with input_api.CreateTemporaryFile(mode = 'wt') as f:
|
||||
f.write(input_api.ReadFile(base_manifest))
|
||||
f.close()
|
||||
|
||||
|
Reference in New Issue
Block a user