commit | 4bb96feb60b80b580706e3a2c67db856382a530f | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Thu Feb 12 04:17:04 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Thu Feb 12 04:17:04 2009 +0000 |
tree | 078a844508a857476d17fbc0022c1739ca1446eb | |
parent | 1312b4bcfdb85577b317f0024efe271aee18856b [diff] [blame] |
no need for this __bases__ trick anymore
diff --git a/Lib/urllib2.py b/Lib/urllib2.py index e108b29..a2a7e66 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py
@@ -441,7 +441,7 @@ """ import types def isclass(obj): - return isinstance(obj, types.ClassType) or hasattr(obj, "__bases__") + return isinstance(obj, (types.ClassType, type)) opener = OpenerDirector() default_classes = [ProxyHandler, UnknownHandler, HTTPHandler,