From 29ac57f565ac94021dee46b365daa56a3d27333e Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Tue, 10 Oct 2017 18:24:34 -0700 Subject: String format modernization, part 1 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. --- paramiko/primes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'paramiko/primes.py') diff --git a/paramiko/primes.py b/paramiko/primes.py index 65617914..ca8f9bec 100644 --- a/paramiko/primes.py +++ b/paramiko/primes.py @@ -91,7 +91,7 @@ class ModulusPack (object): bl = util.bit_length(modulus) if (bl != size) and (bl != size + 1): self.discarded.append( - (modulus, 'incorrectly reported bit length %d' % size)) + (modulus, 'incorrectly reported bit length {}'.format(size))) return if bl not in self.pack: self.pack[bl] = [] -- cgit v1.2.1