summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Paul Calderone <exarkun@twistedmatrix.com>2014-05-01 09:32:46 -0400
committerJean-Paul Calderone <exarkun@twistedmatrix.com>2014-05-01 09:32:46 -0400
commita538105f9de4d22e7dd7fbfe2811bd8d38071c0f (patch)
tree6dd789be4254d35d2f15227f70f50f5345ea07b5
parentf22abcd359fd3c5e5280d38570b9c33a338384ac (diff)
downloadpyopenssl-ecdhe.tar.gz
do some explainingecdhe
-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