commit | 40da72daab527ed11684ee0749c292c3b7a3fdcd | [log] [tgz] |
---|---|---|
author | Jean-Paul Calderone <exarkun@twistedmatrix.com> | Thu May 01 09:25:17 2014 -0400 |
committer | Jean-Paul Calderone <exarkun@twistedmatrix.com> | Thu May 01 09:25:17 2014 -0400 |
tree | 5fcde2afb660f107d3e368f8b68096d931aebb9c | |
parent | 15f3644811f0844965dee19978d15ef40911e333 [diff] [blame] |
Try to work around the strange Python 3 behavior.
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 @@ """ _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): """