From 0e54c59c81091636b7d48698cdfab9784d1c4214 Mon Sep 17 00:00:00 2001 From: Dan Harrington Date: Wed, 2 Jun 2021 16:41:29 +0000 Subject: [PATCH] Convert PRESUBMIT.py to python3 Bug: 1211962 Change-Id: I4f4520e4f458ace468dfba144b68c7a60e11388a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2931077 Reviewed-by: Ted Choc Commit-Queue: Dan H Cr-Commit-Position: refs/heads/master@{#888494} --- chrome/PRESUBMIT.py | 2 ++ chrome/PRESUBMIT_test.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/chrome/PRESUBMIT.py b/chrome/PRESUBMIT.py index e7bdbd1191dbb9..3f4d40903259df 100644 --- a/chrome/PRESUBMIT.py +++ b/chrome/PRESUBMIT.py @@ -8,6 +8,8 @@ for more details about the presubmit API built into depot_tools. """ +USE_PYTHON3 = True + import re INCLUDE_CPP_FILES_ONLY = ( diff --git a/chrome/PRESUBMIT_test.py b/chrome/PRESUBMIT_test.py index 0ce9a76959b7f6..595e20e8721686 100755 --- a/chrome/PRESUBMIT_test.py +++ b/chrome/PRESUBMIT_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file.