This commit is contained in:
Benjamin Peterson 2014-04-01 16:27:30 -04:00
parent 5dd3caed2b
commit 78c8538461
1 changed files with 1 additions and 1 deletions

View File

@ -521,7 +521,7 @@ def build_opener(*handlers):
skip = set()
for klass in default_classes:
for check in handlers:
if instance(check, type):
if isinstance(check, type):
if issubclass(check, klass):
skip.add(klass)
elif isinstance(check, klass):