remove ImportError based branching

This commit is contained in:
Joshua Li 2020-06-02 20:01:02 -07:00 committed by Brian May
parent 9bcca27965
commit bef54e778d

View File

@ -6,24 +6,13 @@ import zlib
import imp
import subprocess as ssubprocess
import shlex
from shlex import quote
import ipaddress
# ensure backwards compatiblity with python2.7
try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
import sshuttle.helpers as helpers
from sshuttle.helpers import debug2
try:
# Python >= 3.5
from shlex import quote
except ImportError:
# Python 2.x
from pipes import quote
def readfile(name):
tokens = name.split(".")