Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sshuttle
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pub
sshuttle
Commits
bef54e77
Commit
bef54e77
authored
Jun 03, 2020
by
Joshua Li
Committed by
Brian May
Jun 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove ImportError based branching
parent
9bcca279
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
13 deletions
+2
-13
ssh.py
sshuttle/ssh.py
+2
-13
No files found.
sshuttle/ssh.py
View file @
bef54e77
...
...
@@ -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
from
urllib.parse
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
(
"."
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment