diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-05-01 08:20:11 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-05-01 08:20:11 -0500 |
commit | e0f4be03bb683836944d950dde7f25380173883d (patch) | |
tree | d44aa1634f3fe44bfc01795b092bff68b9389a89 | |
parent | 27209ee3c992e0a0de64bd34c84be3608fc8c978 (diff) | |
download | cryptography-e0f4be03bb683836944d950dde7f25380173883d.tar.gz cryptography-e0f4be03bb683836944d950dde7f25380173883d.tar.bz2 cryptography-e0f4be03bb683836944d950dde7f25380173883d.zip |
improve some formatting
-rw-r--r-- | cryptography/hazmat/backends/openssl/backend.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py index f6c888d0..ea58d753 100644 --- a/cryptography/hazmat/backends/openssl/backend.py +++ b/cryptography/hazmat/backends/openssl/backend.py @@ -493,17 +493,18 @@ class Backend(object): def dsa_hash_supported(self, algorithm): if ( - self._lib.OPENSSL_VERSION_NUMBER < 0x1000000f and - not isinstance(algorithm, hashes.SHA1)): + self._lib.OPENSSL_VERSION_NUMBER < 0x1000000f and + not isinstance(algorithm, hashes.SHA1) + ): return False else: return self.hash_supported(algorithm) def dsa_parameters_supported(self, p, q): - if (self._lib.OPENSSL_VERSION_NUMBER < 0x1000000f - and not ( - utils.bit_length(p) <= 1024 - and utils.bit_length(q) <= 160)): + if ( + self._lib.OPENSSL_VERSION_NUMBER < 0x1000000f and + not (utils.bit_length(p) <= 1024 and utils.bit_length(q) <= 160) + ): return False else: return True |