Commit 062ff778 authored by Andreas Jung's avatar Andreas Jung

Collector #771: using instance()

parent 16e36b0d
......@@ -44,7 +44,7 @@ except:
if hasattr(ob, '__call__'):
return 1
else:
return type(ob) in [types.ClassType]
return isinstance(ob, types.ClassType)
else:
return callable(ob)
......
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