Commit 4bb96feb authored by Benjamin Peterson's avatar Benjamin Peterson

no need for this __bases__ trick anymore

parent 1312b4bc
......@@ -441,7 +441,7 @@ def build_opener(*handlers):
"""
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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment