diff options
author | Jean-Paul Calderone <exarkun@twistedmatrix.com> | 2014-05-01 09:32:46 -0400 |
---|---|---|
committer | Jean-Paul Calderone <exarkun@twistedmatrix.com> | 2014-05-01 09:32:46 -0400 |
commit | a538105f9de4d22e7dd7fbfe2811bd8d38071c0f (patch) | |
tree | 6dd789be4254d35d2f15227f70f50f5345ea07b5 | |
parent | f22abcd359fd3c5e5280d38570b9c33a338384ac (diff) | |
download | pyopenssl-a538105f9de4d22e7dd7fbfe2811bd8d38071c0f.tar.gz |
do some explainingecdhe
-rw-r--r-- | OpenSSL/crypto.py | 7 |
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 |