]> granicus.if.org Git - python/commitdiff
fix typo
authorBenjamin Peterson <benjamin@python.org>
Tue, 1 Apr 2014 20:27:30 +0000 (16:27 -0400)
committerBenjamin Peterson <benjamin@python.org>
Tue, 1 Apr 2014 20:27:30 +0000 (16:27 -0400)
Lib/urllib/request.py

index 65a3aeb72f5a1dd6a898f2105cf7f44ed1341de1..8a7d048dc5ca1fd9cc75da959fc116c74799cbcc 100644 (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):