restructure if statements to be less confusing
diff --git a/cryptography/hazmat/primitives/asymmetric/padding.py b/cryptography/hazmat/primitives/asymmetric/padding.py
index 181038f..46e00b8 100644
--- a/cryptography/hazmat/primitives/asymmetric/padding.py
+++ b/cryptography/hazmat/primitives/asymmetric/padding.py
@@ -34,10 +34,10 @@
         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