aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhoebe Queen <foibey@gmail.com>2015-08-12 03:11:35 +0100
committerPhoebe Queen <foibey@gmail.com>2015-08-12 03:11:35 +0100
commit754be60e2fb672950d97d1089df5ce2175e557b4 (patch)
tree0968083a54a5e6d0c6ed05b1ec0baefe278149e7 /src
parent64cf4cdcc73f84354a78f2625916caf01ae630ae (diff)
downloadcryptography-754be60e2fb672950d97d1089df5ce2175e557b4.tar.gz
cryptography-754be60e2fb672950d97d1089df5ce2175e557b4.tar.bz2
cryptography-754be60e2fb672950d97d1089df5ce2175e557b4.zip
Corrected class checking #2255
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/x509/extensions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/x509/extensions.py b/src/cryptography/x509/extensions.py
index 74e271ed..938a98e9 100644
--- a/src/cryptography/x509/extensions.py
+++ b/src/cryptography/x509/extensions.py
@@ -82,7 +82,7 @@ class Extensions(object):
def get_extension_for_class(self, extclass):
for ext in self:
- if type(ext.value) == extclass:
+ if isinstance(ext.value, extclass):
return ext
raise ExtensionNotFound("No {0} extension was found".format(extclass), extclass)