From e0f4be03bb683836944d950dde7f25380173883d Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Thu, 1 May 2014 08:20:11 -0500 Subject: improve some formatting --- cryptography/hazmat/backends/openssl/backend.py | 13 +++++++------ 1 file 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 -- cgit v1.2.3