diff options
Diffstat (limited to 'main.py')
| -rwxr-xr-x | main.py | 12 |
1 files changed, 1 insertions, 11 deletions
| @@ -28,15 +28,7 @@ import shlex | |||
| 28 | import sys | 28 | import sys |
| 29 | import textwrap | 29 | import textwrap |
| 30 | import time | 30 | import time |
| 31 | 31 | import urllib.request | |
| 32 | from pyversion import is_python3 | ||
| 33 | if is_python3(): | ||
| 34 | import urllib.request | ||
| 35 | else: | ||
| 36 | import imp | ||
| 37 | import urllib2 | ||
| 38 | urllib = imp.new_module('urllib') | ||
| 39 | urllib.request = urllib2 | ||
| 40 | 32 | ||
| 41 | try: | 33 | try: |
| 42 | import kerberos | 34 | import kerberos |
| @@ -68,8 +60,6 @@ from wrapper import WrapperPath, Wrapper | |||
| 68 | 60 | ||
| 69 | from subcmds import all_commands | 61 | from subcmds import all_commands |
| 70 | 62 | ||
| 71 | if not is_python3(): | ||
| 72 | input = raw_input # noqa: F821 | ||
| 73 | 63 | ||
| 74 | # NB: These do not need to be kept in sync with the repo launcher script. | 64 | # NB: These do not need to be kept in sync with the repo launcher script. |
| 75 | # These may be much newer as it allows the repo launcher to roll between | 65 | # These may be much newer as it allows the repo launcher to roll between |
