summaryrefslogtreecommitdiff
path: root/paramiko/primes.py
diff options
context:
space:
mode:
Diffstat (limited to 'paramiko/primes.py')
-rw-r--r--paramiko/primes.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/paramiko/primes.py b/paramiko/primes.py
index 22e536b8..8dff7683 100644
--- a/paramiko/primes.py
+++ b/paramiko/primes.py
@@ -61,9 +61,15 @@ class ModulusPack(object):
self.discarded = []
def _parse_modulus(self, line):
- timestamp, mod_type, tests, tries, size, generator, modulus = (
- line.split()
- )
+ (
+ timestamp,
+ mod_type,
+ tests,
+ tries,
+ size,
+ generator,
+ modulus,
+ ) = line.split()
mod_type = int(mod_type)
tests = int(tests)
tries = int(tries)
@@ -93,7 +99,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: