diff options
author | Marius Gedminas <marius@gedmin.as> | 2016-02-05 08:38:00 +0200 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2016-04-24 13:56:46 -0700 |
commit | 858c167a6487e4a9d9cca3653b8e260f085dba02 (patch) | |
tree | 39126572d2cb6f1011e0678521fb6be957b1b018 | |
parent | e1d09fe4b0f4ab8eee5e923dd63ae08155334e80 (diff) |
Fix tests on Python 3.x
(This also fixes #678.)
-rw-r--r-- | paramiko/ssh_exception.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/ssh_exception.py b/paramiko/ssh_exception.py index b61000ae..bdf97e24 100644 --- a/paramiko/ssh_exception.py +++ b/paramiko/ssh_exception.py @@ -164,7 +164,7 @@ class NoValidConnectionsError(socket.error): :param dict errors: The errors dict to store, as described by class docstring. """ - addrs = errors.keys() + addrs = list(errors.keys()) body = ', '.join([x[0] for x in addrs[:-1]]) tail = addrs[-1][0] msg = "Unable to connect to port {0} on {1} or {2}" |