aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMathias Ertl <mati@fsinf.at>2019-03-25 22:25:49 +0100
committerAlex Gaynor <alex.gaynor@gmail.com>2019-03-25 14:25:49 -0700
commit91105952739442a74582d3e62b3d2111365b0dc7 (patch)
tree1d9ee247fcfe24d5ff1456cc1d377bedba2fb08b /src
parent5c037cc8eb800b0da4a6c475cecbdec3b182422b (diff)
downloadcryptography-91105952739442a74582d3e62b3d2111365b0dc7.tar.gz
cryptography-91105952739442a74582d3e62b3d2111365b0dc7.tar.bz2
cryptography-91105952739442a74582d3e62b3d2111365b0dc7.zip
fix != comparison in py2 (fixes #4821) (#4822)
* fix != comparison in py2 (fixes #4821) * remove blank line b/c pep8 * move __ne__ next to __eq__ as per review request
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/x509/extensions.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cryptography/x509/extensions.py b/src/cryptography/x509/extensions.py
index 7884afbd..e64e09c5 100644
--- a/src/cryptography/x509/extensions.py
+++ b/src/cryptography/x509/extensions.py
@@ -862,6 +862,9 @@ class OCSPNoCheck(object):
return True
+ def __ne__(self, other):
+ return not self == other
+
def __hash__(self):
return hash(OCSPNoCheck)
@@ -879,6 +882,9 @@ class PrecertPoison(object):
return True
+ def __ne__(self, other):
+ return not self == other
+
def __hash__(self):
return hash(PrecertPoison)