no need for this __bases__ trick anymore

This commit is contained in:
Benjamin Peterson 2009-02-12 04:17:04 +00:00
parent 1312b4bcfd
commit 4bb96feb60
1 changed files with 1 additions and 1 deletions

View File

@ -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,