From a538105f9de4d22e7dd7fbfe2811bd8d38071c0f Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Thu, 1 May 2014 09:32:46 -0400 Subject: do some explaining --- OpenSSL/crypto.py | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.1