diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2020-09-01 01:13:45 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2020-09-01 01:13:45 +0000 |
commit | 5c8e24fc4d8ff4e44b53b67f02fcde74a105ed4e (patch) | |
tree | 7353b4f2e2170f3a9543ae5063bd6385d3b551ce | |
parent | 63b82139b5fafa6c5697734cd4260d4eb84f04c2 (diff) | |
parent | 24a38ce5e7368039d36fc39f5c39468396974e2c (diff) | |
download | repohooks-5c8e24fc4d8ff4e44b53b67f02fcde74a105ed4e.tar.gz |
Snap for 6803976 from 24a38ce5e7368039d36fc39f5c39468396974e2c to sc-release
Change-Id: Ibbb1b25116bbd29eac688754e0d4d685729c9d63
-rwxr-xr-x | pre-upload.py | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/pre-upload.py b/pre-upload.py index ffefd09..94bb961 100755 --- a/pre-upload.py +++ b/pre-upload.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # -*- coding:utf-8 -*- # Copyright 2016 The Android Open Source Project # @@ -29,18 +29,9 @@ import sys # Assert some minimum Python versions as we don't test or support any others. -# We only support Python 2.7, and require 2.7.5+/3.4+ to include signal fix: -# https://bugs.python.org/issue14173 -if sys.version_info < (2, 7, 5): - print('repohooks: error: Python-2.7.5+ is required', file=sys.stderr) - sys.exit(1) -elif sys.version_info.major == 3 and sys.version_info < (3, 5): +if sys.version_info < (3, 5): print('repohooks: error: Python-3.5+ is required', file=sys.stderr) sys.exit(1) -elif sys.version_info < (3, 6): - # We want to get people off of old versions of Python. - print('repohooks: warning: Python-3.6+ is going to be required; ' - 'please upgrade soon to maintain support.', file=sys.stderr) _path = os.path.dirname(os.path.realpath(__file__)) |