aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-12-26 13:31:48 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-12-26 13:31:48 -0600
commit657c3b8aea9a1a255d6247d070b57f86f99fa6ed (patch)
tree8a5bcc2b0f9f187ec8f4384e483c972feac053e4 /src
parentd67d77f666417bff7ea52e2754f7a680c7a83b0c (diff)
parentf9a77b6886ac8942645a24b8cb65479fcfd23d09 (diff)
downloadcryptography-657c3b8aea9a1a255d6247d070b57f86f99fa6ed.tar.gz
cryptography-657c3b8aea9a1a255d6247d070b57f86f99fa6ed.tar.bz2
cryptography-657c3b8aea9a1a255d6247d070b57f86f99fa6ed.zip
Merge pull request #2580 from alex/crl-number-hash
Refs #2578 -- implement __hash__ on CRLNumber
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/x509/extensions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptography/x509/extensions.py b/src/cryptography/x509/extensions.py
index 6ae00927..2363d2bf 100644
--- a/src/cryptography/x509/extensions.py
+++ b/src/cryptography/x509/extensions.py
@@ -132,6 +132,9 @@ class CRLNumber(object):
def __ne__(self, other):
return not self == other
+ def __hash__(self):
+ return hash(self.crl_number)
+
def __repr__(self):
return "<CRLNumber({0})>".format(self.crl_number)