From 67cde769bd98f701e88e051b74a9db7ae4f03f00 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sat, 26 Dec 2015 11:37:14 -0600 Subject: add __hash__ to InvalidityDate --- src/cryptography/x509/extensions.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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") -- cgit v1.2.3