diff options
author | Brian May <brian@linuxpenguins.xyz> | 2015-11-16 08:41:25 +1100 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2015-11-16 09:09:01 +1100 |
commit | ba1cf58a6cbe4953f6e012c10d5a66964d22a21f (patch) | |
tree | 6f2ca41c8b8416dd78a30c2367512060c8a49c25 /sshuttle/helpers.py | |
parent | dd8e68b6dcb0a8b10d4949d07f5b3dd949af5409 (diff) |
Add Python 3.5 support.
Diffstat (limited to 'sshuttle/helpers.py')
-rw-r--r-- | sshuttle/helpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sshuttle/helpers.py b/sshuttle/helpers.py index 6d8c9a3..db7083e 100644 --- a/sshuttle/helpers.py +++ b/sshuttle/helpers.py @@ -69,7 +69,7 @@ def islocal(ip, family): try: try: sock.bind((ip, 0)) - except socket.error, e: + except socket.error as e: if e.args[0] == errno.EADDRNOTAVAIL: return False # not a local IP else: |