summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Quack <don@amberfisharts.com>2009-10-08 19:59:16 -0400
committerDwayne C. Litzenberger <dlitz@dlitz.net>2009-10-08 20:30:47 -0400
commit4faac7f8b1023e67cb5b2e6783ee89f7a97e62bb (patch)
tree4da81d39286813be54fe7e8e02fc780a02b384ba
parent215a7d3c2cb4461e8175bb2b6cc8362d89c33dfe (diff)
downloadpycrypto-4faac7f8b1023e67cb5b2e6783ee89f7a97e62bb.tar.gz
Apply patch to implement __ne__() in Crypto.PublicKey.pubkey.pubkey
This fixes https://bugs.launchpad.net/pycrypto/+bug/440028
-rw-r--r--lib/Crypto/PublicKey/pubkey.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Crypto/PublicKey/pubkey.py b/lib/Crypto/PublicKey/pubkey.py
index 3b3892e..90f4603 100644
--- a/lib/Crypto/PublicKey/pubkey.py
+++ b/lib/Crypto/PublicKey/pubkey.py
@@ -184,3 +184,9 @@ integers, MPZ objects, or whatever."""
Compare us to other for equality.
"""
return self.__getstate__() == other.__getstate__()
+
+ def __ne__ (self, other):
+ """__ne__(other): 0, 1
+ Compare us to other for inequality.
+ """
+ return not self.__eq__(other)