diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2017-10-10 18:24:34 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2017-10-10 18:24:38 -0700 |
commit | 29ac57f565ac94021dee46b365daa56a3d27333e (patch) | |
tree | dda22abe6f5eba8118b225c55fac2f7a09237e4e /paramiko/config.py | |
parent | 9019b25497c2b143e06da6a393e24b67bfc848f0 (diff) | |
download | paramiko-29ac57f565ac94021dee46b365daa56a3d27333e.tar.gz |
String format modernization, part 11070-remove-python26-and-33
Choosing to skip it in some edge/corner cases where it's more harmful
than helpful. Also choosing to replace many non-%s specifiers with
regular old {} since I don't see why one would normally care. Again,
eschewing that in spots where it seems like it might matter.
Diffstat (limited to 'paramiko/config.py')
-rw-r--r-- | paramiko/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/config.py b/paramiko/config.py index 073abb36..038d84ea 100644 --- a/paramiko/config.py +++ b/paramiko/config.py @@ -65,7 +65,7 @@ class SSHConfig (object): match = re.match(self.SETTINGS_REGEX, line) if not match: - raise Exception("Unparsable line %s" % line) + raise Exception("Unparsable line {}".format(line)) key = match.group(1).lower() value = match.group(2) @@ -239,7 +239,7 @@ class SSHConfig (object): try: return shlex.split(host) except ValueError: - raise Exception("Unparsable host %s" % host) + raise Exception("Unparsable host {}".format(host)) class LazyFqdn(object): |