summaryrefslogtreecommitdiff
path: root/OpenSSL/crypto.py
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSSL/crypto.py')
-rw-r--r--OpenSSL/crypto.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSSL/crypto.py b/OpenSSL/crypto.py
index c48c84f..03fe853 100644
--- a/OpenSSL/crypto.py
+++ b/OpenSSL/crypto.py
@@ -276,7 +276,14 @@ class _EllipticCurve(object):
_curves = None
if _PY3:
+ # This only necessary on Python 3. Morever, it is broken on Python 2.
def __ne__(self, other):
+ """
+ Implement cooperation with the right-hand side argument of ``!=``.
+
+ Python 3 seems to have dropped this cooperation in this very narrow
+ circumstance.
+ """
if isinstance(other, _EllipticCurve):
return super(_EllipticCurve, self).__ne__(other)
return NotImplemented