aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2016-01-03 15:14:34 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2016-01-03 15:14:34 -0500
commitd1b5681f6db2bde7a14625538bd7907b08dfb486 (patch)
treea432fcde6a5396e198aa44e1b5016395905c7e52 /src
parenta39a23c6c18aaa01165c6c67b9c715405b259a54 (diff)
downloadcryptography-d1b5681f6db2bde7a14625538bd7907b08dfb486.tar.gz
cryptography-d1b5681f6db2bde7a14625538bd7907b08dfb486.tar.bz2
cryptography-d1b5681f6db2bde7a14625538bd7907b08dfb486.zip
Implement __hash__ on UniformResourceIdentifier
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/x509/general_name.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptography/x509/general_name.py b/src/cryptography/x509/general_name.py
index f5bd30fb..049cd21f 100644
--- a/src/cryptography/x509/general_name.py
+++ b/src/cryptography/x509/general_name.py
@@ -155,6 +155,9 @@ class UniformResourceIdentifier(object):
def __ne__(self, other):
return not self == other
+ def __hash__(self):
+ return hash(self.value)
+
@utils.register_interface(GeneralName)
class DirectoryName(object):