diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-12-27 15:20:05 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-12-27 15:20:05 -0600 |
commit | 58fb25797de0ec8866836f2a075063feeb689289 (patch) | |
tree | f3dbe9b61daa741d3b52a5abb31ca0f6ee4d8307 /src | |
parent | b25888daba748af45bc96afbd08a25f3820ece52 (diff) | |
parent | 07d5cae4be47933f5001e8d28d0dddab6edeec3e (diff) | |
download | cryptography-58fb25797de0ec8866836f2a075063feeb689289.tar.gz cryptography-58fb25797de0ec8866836f2a075063feeb689289.tar.bz2 cryptography-58fb25797de0ec8866836f2a075063feeb689289.zip |
Merge pull request #2595 from alex/crl-reason-hash
Refs #2578 -- implement __hash__ on CRLReason
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/x509/extensions.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptography/x509/extensions.py b/src/cryptography/x509/extensions.py index ca323a3b..7979ccb2 100644 --- a/src/cryptography/x509/extensions.py +++ b/src/cryptography/x509/extensions.py @@ -1022,6 +1022,9 @@ class CRLReason(object): def __ne__(self, other): return not self == other + def __hash__(self): + return hash(self.reason) + reason = utils.read_only_property("_reason") |