summaryrefslogtreecommitdiffstats
path: root/sshuttle/helpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'sshuttle/helpers.py')
-rw-r--r--sshuttle/helpers.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/sshuttle/helpers.py b/sshuttle/helpers.py
index 4a41e4e..6c8ab82 100644
--- a/sshuttle/helpers.py
+++ b/sshuttle/helpers.py
@@ -5,16 +5,11 @@ import errno
logprefix = ''
verbose = 0
-if sys.version_info[0] == 3:
- binary_type = bytes
+binary_type = bytes
- def b(s):
- return s.encode("ASCII")
-else:
- binary_type = str
- def b(s):
- return s
+def b(s):
+ return s.encode("ASCII")
def log(s):