summaryrefslogtreecommitdiff
path: root/paramiko/primes.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2017-05-31 18:18:33 -0700
committerJeff Forcier <jeff@bitprophet.org>2017-05-31 18:18:33 -0700
commit7a2c893d95651ad1f4667f7e4480da149069b7ff (patch)
treeb716894dd4ab0491bb7fee7f3b12149d3f8912c7 /paramiko/primes.py
parent25de2a02048897752df356189017b22a49d37f88 (diff)
downloadparamiko-7a2c893d95651ad1f4667f7e4480da149069b7ff.tar.gz
Even moar parentheses over backslashes
Diffstat (limited to 'paramiko/primes.py')
-rw-r--r--paramiko/primes.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/paramiko/primes.py b/paramiko/primes.py
index 50100ad5..48a34e53 100644
--- a/paramiko/primes.py
+++ b/paramiko/primes.py
@@ -75,8 +75,11 @@ class ModulusPack (object):
# type 2 (meets basic structural requirements)
# test 4 (more than just a small-prime sieve)
# tries < 100 if test & 4 (at least 100 tries of miller-rabin)
- if (mod_type < 2) or (tests < 4) or \
- ((tests & 4) and (tests < 8) and (tries < 100)):
+ if (
+ mod_type < 2 or
+ tests < 4 or
+ (tests & 4 and tests < 8 and tries < 100)
+ ):
self.discarded.append(
(modulus, 'does not meet basic requirements'))
return