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/kex_group1.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/kex_group1.py')
-rw-r--r-- | paramiko/kex_group1.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/kex_group1.py b/paramiko/kex_group1.py index e8f042b1..64d463cd 100644 --- a/paramiko/kex_group1.py +++ b/paramiko/kex_group1.py @@ -73,7 +73,7 @@ class KexGroup1(object): return self._parse_kexdh_init(m) elif not self.transport.server_mode and (ptype == _MSG_KEXDH_REPLY): return self._parse_kexdh_reply(m) - raise SSHException('KexGroup1 asked to handle packet type %d' % ptype) + raise SSHException('KexGroup1 asked to handle packet type {:d}'.format(ptype)) # ...internals... |