mirror of https://github.com/python/cpython
no need for this __bases__ trick anymore
This commit is contained in:
parent
1312b4bcfd
commit
4bb96feb60
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue