diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2015-02-27 13:29:32 -0800 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2015-02-27 13:29:32 -0800 |
commit | 27e6177f4b7bae87c9fc7aa3556d20100ff9a319 (patch) | |
tree | e7206e3c67b451cbb252700211ea3ef0d571c348 | |
parent | 53b2df9b150e72afe3fe991ef5b3721b7a739c75 (diff) |
Fix a Python 3 incompat bit from recent merge
-rw-r--r-- | paramiko/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/client.py b/paramiko/client.py index 57e9919d..2e1a4dc4 100644 --- a/paramiko/client.py +++ b/paramiko/client.py @@ -272,7 +272,7 @@ class SSHClient (ClosingContextManager): retry_on_signal(lambda: sock.connect(addr)) # Break out of the loop on success break - except socket.error, e: + except socket.error as e: # Raise anything that isn't a straight up connection error # (such as a resolution error) if e.errno not in (ECONNREFUSED, EHOSTUNREACH): |