Skip to content

Commit 6a5e744

Browse files
Takuto Ikutacopybara-github
Takuto Ikuta
authored andcommitted
PRESUBMIT.py: remove unnecessary configs
PRESUBMIT.py now uses Python3 by default. Bug: 1207012 Change-Id: I4f255e159a992bbbc33ddccbd307873b1c265f41 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4569852 Auto-Submit: Takuto Ikuta <[email protected]> Commit-Queue: Takuto Ikuta <[email protected]> Reviewed-by: Fumitoshi Ukai <[email protected]> Commit-Queue: Fumitoshi Ukai <[email protected]> Cr-Commit-Position: refs/heads/main@{#1150415} NOKEYCHECK=True GitOrigin-RevId: 3b31f1cbd28e0a1199defe6f6b37001cef4c4790
1 parent 91b3952 commit 6a5e744

File tree

11 files changed

+0
-14
lines changed

11 files changed

+0
-14
lines changed

PRESUBMIT.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44

55
PRESUBMIT_VERSION = '2.0.0'
66

7-
# This line is 'magic' in that git-cl looks for it to decide whether to
8-
# use Python3 instead of Python2 when running the code in this file.
9-
USE_PYTHON3 = True
10-
117
import textwrap
128

139

PRESUBMIT_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from PRESUBMIT_test_mocks import MockAffectedFile
1515
from PRESUBMIT_test_mocks import MockInputApi, MockOutputApi
1616

17-
USE_PYTHON3 = True
1817

1918

2019
def _fails_deps_check(line, filename='BUILD.gn'):

android/PRESUBMIT.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
details on the presubmit API built into depot_tools.
99
"""
1010

11-
USE_PYTHON3 = True
1211

1312

1413
def CommonChecks(input_api, output_api):

chromeos/PRESUBMIT.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"""
99

1010

11-
USE_PYTHON3 = True
1211

1312

1413
def CommonChecks(input_api, output_api):

fuchsia/PRESUBMIT.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
details on the presubmit API built into depot_tools.
88
"""
99

10-
USE_PYTHON3 = True
1110

1211
import os
1312

fuchsia/test/PRESUBMIT.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
for more details about the presubmit API built into depot_tools.
88
"""
99

10-
USE_PYTHON3 = True
1110

1211
_EXTRA_PATHS_COMPONENTS = [('testing', )]
1312

ios/PRESUBMIT.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
PRESUBMIT_VERSION = '2.0.0'
66

7-
USE_PYTHON3 = True
87

98
TEST_PATTERNS = [r'.+_test.py$']
109

lacros/PRESUBMIT.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# found in the LICENSE file.
44
"""Presubmit script for changes affecting //build/lacros"""
55

6-
USE_PYTHON3 = True
76

87

98
def _CommonChecks(input_api, output_api):

skia_gold_common/PRESUBMIT.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
for more details on the presubmit API built into depot_tools.
88
"""
99

10-
USE_PYTHON3 = True
1110

1211
PRESUBMIT_VERSION = '2.0.0'
1312

util/PRESUBMIT.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"""Presubmit for build/util"""
77

88

9-
USE_PYTHON3 = True
109

1110

1211
def _GetFilesToSkip(input_api):

util/lib/common/PRESUBMIT.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# found in the LICENSE file.
44

55

6-
USE_PYTHON3 = True
76

87

98
def _RunTests(input_api, output_api):

0 commit comments

Comments
 (0)