summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Paul Calderone <exarkun@twistedmatrix.com>2014-05-01 09:25:17 -0400
committerJean-Paul Calderone <exarkun@twistedmatrix.com>2014-05-01 09:25:17 -0400
commit40da72daab527ed11684ee0749c292c3b7a3fdcd (patch)
tree5fcde2afb660f107d3e368f8b68096d931aebb9c
parent15f3644811f0844965dee19978d15ef40911e333 (diff)
downloadpyopenssl-40da72daab527ed11684ee0749c292c3b7a3fdcd.tar.gz
Try to work around the strange Python 3 behavior.
-rw-r--r--OpenSSL/crypto.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSSL/crypto.py b/OpenSSL/crypto.py
index 1312c0a..d62ce84 100644
--- a/OpenSSL/crypto.py
+++ b/OpenSSL/crypto.py
@@ -274,6 +274,12 @@ class _EllipticCurve(object):
"""
_curves = None
+ def __ne__(self, other):
+ if isinstance(other, _EllipticCurve):
+ return super(_EllipticCurve, self).__ne__(other)
+ return NotImplemented
+
+
@classmethod
def _load_elliptic_curves(cls, lib):
"""