summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-04-01 20:27:30 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-04-01 20:27:30 (GMT)
commit78c85384614dd7dc8fc3f9316874ac8ee9310c13 (patch)
tree152e4dc7ef47901c054e74d07d50f57508a80b92
parent5dd3caed2be6da5df934c7c3bedf0bd9ba2d4bf6 (diff)
downloadcpython-78c85384614dd7dc8fc3f9316874ac8ee9310c13.zip
cpython-78c85384614dd7dc8fc3f9316874ac8ee9310c13.tar.gz
cpython-78c85384614dd7dc8fc3f9316874ac8ee9310c13.tar.bz2
fix typo
-rw-r--r--Lib/urllib/request.py2
1 files changed, 1 insertions, 1 deletions
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):