diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2017-06-03 02:03:20 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2017-06-03 02:03:20 -0400 |
commit | 0ddb28f3313e793cf574ed5fed42761be1adf6d5 (patch) | |
tree | 6887f2ef7402ff1f43e6220627d31d1e084e601c | |
parent | 089eb214ac62ed8ec271051c47b34e30ca39c1e9 (diff) |
fixed long line
-rw-r--r-- | paramiko/client.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/paramiko/client.py b/paramiko/client.py index d76ca383..c914b8a0 100644 --- a/paramiko/client.py +++ b/paramiko/client.py @@ -588,7 +588,7 @@ class SSHClient (ClosingContextManager): if not two_factor: keyfiles = [] - for keytype, path in [ + for keytype, name in [ (RSAKey, "rsa"), (DSSKey, "dsa"), (ECDSAKey, "ecdsa"), @@ -596,7 +596,9 @@ class SSHClient (ClosingContextManager): ]: # ~/ssh/ is for windows for directory in [".ssh", "ssh"]: - full_path = os.path.expanduser("~/%s/id_%s" % (directory, path)) + full_path = os.path.expanduser( + "~/%s/id_%s" % (directory, name) + ) if os.path.isfile(full_path): keyfiles.append((keytype, full_path)) |