diff options
author | Mike Frysinger <vapier@google.com> | 2019-06-13 02:24:21 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2021-01-06 18:53:58 +0000 |
commit | acf63b28928b33d1335dfed1af7e2d8fc6bb5fc4 (patch) | |
tree | e7b65524857d00cec6b36c989659afd1132d15ce /subcmds/upload.py | |
parent | 784ccfc040dc8efa1a64d3c7d4070b66beb15d08 (diff) | |
download | git-repo-acf63b28928b33d1335dfed1af7e2d8fc6bb5fc4.tar.gz |
drop pyversion & is_python3 checking
We're committed to Python 3 at this point, so purge all the
is_python3 related dynamic checks.
Bug: https://crbug.com/gerrit/10418
Change-Id: I4c8b405d6de359b8b83223c9f4b9c8ffa18ea1a2
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/292383
Reviewed-by: Chris Mcdonald <cjmcdonald@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/upload.py')
-rw-r--r-- | subcmds/upload.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py index c189e65f..50dccc52 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py | |||
@@ -23,11 +23,6 @@ from git_command import GitCommand | |||
23 | from git_refs import R_HEADS | 23 | from git_refs import R_HEADS |
24 | from hooks import RepoHook | 24 | from hooks import RepoHook |
25 | 25 | ||
26 | from pyversion import is_python3 | ||
27 | if not is_python3(): | ||
28 | input = raw_input # noqa: F821 | ||
29 | else: | ||
30 | unicode = str | ||
31 | 26 | ||
32 | UNUSUAL_COMMIT_THRESHOLD = 5 | 27 | UNUSUAL_COMMIT_THRESHOLD = 5 |
33 | 28 | ||