Skip to content

Commit

Permalink
Collector #771: using instance()
Browse files Browse the repository at this point in the history
  • Loading branch information
zopyx committed Feb 4, 2003
1 parent 5d2a8a2 commit b59b47e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Catalog.py
Expand Up @@ -44,7 +44,7 @@ def safe_callable(ob):
if hasattr(ob, '__call__'):
return 1
else:
return type(ob) in [types.ClassType]
return isinstance(ob, types.ClassType)
else:
return callable(ob)

Expand Down

0 comments on commit b59b47e

Please sign in to comment.