summaryrefslogtreecommitdiff
path: root/paramiko/client.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2017-10-10 14:41:59 -0700
committerJeff Forcier <jeff@bitprophet.org>2017-10-10 14:41:59 -0700
commiteea4f62f0fb5a14eece79565145fb5589008c7e1 (patch)
treeed4c2f0f166e424004e9dd52a2251f57e4890b54 /paramiko/client.py
parent2f4766f7ef6442004fc9de72504de45bb577847b (diff)
downloadparamiko-eea4f62f0fb5a14eece79565145fb5589008c7e1.tar.gz
Use new(er)-style string formatting, {} instead of {0}
Diffstat (limited to 'paramiko/client.py')
-rw-r--r--paramiko/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/client.py b/paramiko/client.py
index 75d295ea..e5931d09 100644
--- a/paramiko/client.py
+++ b/paramiko/client.py
@@ -544,14 +544,14 @@ class SSHClient (ClosingContextManager):
# TODO: change this to 'Loading' instead of 'Trying' sometime; probably
# when #387 is released, since this is a critical log message users are
# likely testing/filtering for (bah.)
- msg = "Trying discovered key {0} in {1}".format(
+ msg = "Trying discovered key {} in {}".format(
hexlify(key.get_fingerprint()), key_path,
)
self._log(DEBUG, msg)
# Attempt to load cert if it exists.
if os.path.isfile(cert_path):
key.load_certificate(cert_path)
- self._log(DEBUG, "Adding public certificate {0}".format(cert_path))
+ self._log(DEBUG, "Adding public certificate {}".format(cert_path))
return key
def _auth(self, username, password, pkey, key_filenames, allow_agent,