diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-03-15 17:28:06 -0400 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-03-15 17:28:06 -0400 |
commit | a0fdedef7328615fad7f174d52d6dc36346c7e2f (patch) | |
tree | 8bec30d5ce0b0c6232f2dccd399d383b7cd6c75c | |
parent | 1c962429404e233e06cb6775f965498ce8b6a5d9 (diff) | |
download | cryptography-a0fdedef7328615fad7f174d52d6dc36346c7e2f.tar.gz cryptography-a0fdedef7328615fad7f174d52d6dc36346c7e2f.tar.bz2 cryptography-a0fdedef7328615fad7f174d52d6dc36346c7e2f.zip |
restructure if statements to be less confusing
-rw-r--r-- | cryptography/hazmat/primitives/asymmetric/padding.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cryptography/hazmat/primitives/asymmetric/padding.py b/cryptography/hazmat/primitives/asymmetric/padding.py index 181038fa..46e00b8e 100644 --- a/cryptography/hazmat/primitives/asymmetric/padding.py +++ b/cryptography/hazmat/primitives/asymmetric/padding.py @@ -34,10 +34,10 @@ class MGF1(object): self._algorithm = algorithm if (not isinstance(salt_length, six.integer_types) and - not salt_length is self.MAX_LENGTH): + salt_length is not self.MAX_LENGTH): raise TypeError("salt_length must be an integer") - if not salt_length is self.MAX_LENGTH and salt_length < 0: + if salt_length is not self.MAX_LENGTH and salt_length < 0: raise ValueError("salt_length must be zero or greater") self._salt_length = salt_length |