You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
445 B
Python
20 lines
445 B
Python
4 years ago
|
# Copyright (c) 2021 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.
|
||
|
|
||
|
import sys
|
||
|
|
||
|
PRESUBMIT_VERSION = '2.0.0'
|
||
|
|
||
|
USE_PYTHON3 = True
|
||
|
|
||
|
|
||
|
def CheckUsePython3(input_api, output_api):
|
||
|
results = []
|
||
|
|
||
|
if sys.version_info.major != 3:
|
||
|
results.append(output_api.PresubmitError(
|
||
|
'Did not use Python3 for //tests/PRESUBMIT.py.'))
|
||
|
|
||
|
return results
|