aboutsummaryrefslogtreecommitdiffstats
path: root/src/cryptography/x509/extensions.py
diff options
context:
space:
mode:
authorEeshan Garg <jerryguitarist@gmail.com>2016-01-31 16:46:22 -0330
committerEeshan Garg <jerryguitarist@gmail.com>2016-01-31 16:46:22 -0330
commitd8e0d8534fb49c23d436716fb445ea7e54e08735 (patch)
treeadb61f4e04bdf10d06cab1cde444ba0123fb492e /src/cryptography/x509/extensions.py
parentd7ef98b1827b96e01f13fe7a11e76ff0ad03a9c9 (diff)
downloadcryptography-d8e0d8534fb49c23d436716fb445ea7e54e08735.tar.gz
cryptography-d8e0d8534fb49c23d436716fb445ea7e54e08735.tar.bz2
cryptography-d8e0d8534fb49c23d436716fb445ea7e54e08735.zip
Refs #2578 -- implement __hash__ on AccessDescription
Diffstat (limited to 'src/cryptography/x509/extensions.py')
-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 3e6fc3b3..fe9bcf9b 100644
--- a/src/cryptography/x509/extensions.py
+++ b/src/cryptography/x509/extensions.py
@@ -313,6 +313,9 @@ class AccessDescription(object):
def __ne__(self, other):
return not self == other
+ def __hash__(self):
+ return hash((self.access_method, self.access_location))
+
access_method = utils.read_only_property("_access_method")
access_location = utils.read_only_property("_access_location")