From 78c85384614dd7dc8fc3f9316874ac8ee9310c13 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 1 Apr 2014 16:27:30 -0400 Subject: fix typo --- Lib/urllib/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index 65a3aeb..8a7d048 100644 --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -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): -- cgit v0.12