From d8e0d8534fb49c23d436716fb445ea7e54e08735 Mon Sep 17 00:00:00 2001 From: Eeshan Garg Date: Sun, 31 Jan 2016 16:46:22 -0330 Subject: Refs #2578 -- implement __hash__ on AccessDescription --- 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 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") -- cgit v1.2.3