mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +00:00
no need for this __bases__ trick anymore
This commit is contained in:
parent
1312b4bcfd
commit
4bb96feb60
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue