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 /project.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 'project.py')
-rw-r--r-- | project.py | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -25,6 +25,7 @@ import sys | |||
25 | import tarfile | 25 | import tarfile |
26 | import tempfile | 26 | import tempfile |
27 | import time | 27 | import time |
28 | import urllib.parse | ||
28 | 29 | ||
29 | from color import Coloring | 30 | from color import Coloring |
30 | from git_command import GitCommand, git_require | 31 | from git_command import GitCommand, git_require |
@@ -39,16 +40,6 @@ from repo_trace import IsTrace, Trace | |||
39 | 40 | ||
40 | from git_refs import GitRefs, HEAD, R_HEADS, R_TAGS, R_PUB, R_M, R_WORKTREE_M | 41 | from git_refs import GitRefs, HEAD, R_HEADS, R_TAGS, R_PUB, R_M, R_WORKTREE_M |
41 | 42 | ||
42 | from pyversion import is_python3 | ||
43 | if is_python3(): | ||
44 | import urllib.parse | ||
45 | else: | ||
46 | import imp | ||
47 | import urlparse | ||
48 | urllib = imp.new_module('urllib') | ||
49 | urllib.parse = urlparse | ||
50 | input = raw_input # noqa: F821 | ||
51 | |||
52 | 43 | ||
53 | # Maximum sleep time allowed during retries. | 44 | # Maximum sleep time allowed during retries. |
54 | MAXIMUM_RETRY_SLEEP_SEC = 3600.0 | 45 | MAXIMUM_RETRY_SLEEP_SEC = 3600.0 |