diff options
author | cclauss <cclauss@me.com> | 2019-07-06 14:13:09 +0200 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2019-07-11 09:33:51 -0700 |
commit | 5ebaf703aa24abd7f45875d61d72a5088a0eb78b (patch) | |
tree | e63ed9c959d4b96407342fce7d454595e870075b /tools/gyp/PRESUBMIT.py | |
parent | f5b40b2ffaac2932f941bda1e456b62ec61eabd1 (diff) | |
download | android-node-v8-5ebaf703aa24abd7f45875d61d72a5088a0eb78b.tar.gz android-node-v8-5ebaf703aa24abd7f45875d61d72a5088a0eb78b.tar.bz2 android-node-v8-5ebaf703aa24abd7f45875d61d72a5088a0eb78b.zip |
gyp: pull Python 3 changes from node/node-gyp
PR-URL: https://github.com/nodejs/node/pull/28573
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'tools/gyp/PRESUBMIT.py')
-rw-r--r-- | tools/gyp/PRESUBMIT.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tools/gyp/PRESUBMIT.py b/tools/gyp/PRESUBMIT.py index 4bc1b8ca26..e52f9d2d22 100644 --- a/tools/gyp/PRESUBMIT.py +++ b/tools/gyp/PRESUBMIT.py @@ -76,8 +76,7 @@ PYLINT_DISABLED_WARNINGS = [ def _LicenseHeader(input_api): # Accept any year number from 2009 to the current year. current_year = int(input_api.time.strftime('%Y')) - allowed_years = (str(s) for s in reversed(xrange(2009, current_year + 1))) - + allowed_years = (str(s) for s in reversed(range(2009, current_year + 1))) years_re = '(' + '|'.join(allowed_years) + ')' # The (c) is deprecated, but tolerate it until it's removed from all files. @@ -124,3 +123,16 @@ def CheckChangeOnCommit(input_api, output_api): finally: sys.path = old_sys_path return report + + +TRYBOTS = [ + 'linux_try', + 'mac_try', + 'win_try', +] + + +def GetPreferredTryMasters(_, change): + return { + 'client.gyp': { t: set(['defaulttests']) for t in TRYBOTS }, + } |