aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-12-26 11:37:14 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-12-26 11:37:14 -0600
commit67cde769bd98f701e88e051b74a9db7ae4f03f00 (patch)
treef3a993fd8aa64092f98a25e5dcd97e676e054a61 /src
parent23c0bbc2dc007aa507b22f407c3a0048be98a1a4 (diff)
downloadcryptography-67cde769bd98f701e88e051b74a9db7ae4f03f00.tar.gz
cryptography-67cde769bd98f701e88e051b74a9db7ae4f03f00.tar.bz2
cryptography-67cde769bd98f701e88e051b74a9db7ae4f03f00.zip
add __hash__ to InvalidityDate
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 22cba682..89172cb0 100644
--- a/src/cryptography/x509/extensions.py
+++ b/src/cryptography/x509/extensions.py
@@ -1028,4 +1028,7 @@ class InvalidityDate(object):
def __ne__(self, other):
return not self == other
+ def __hash__(self):
+ return hash(self.invalidity_date)
+
invalidity_date = utils.read_only_property("_invalidity_date")