That was one too much.

This commit is contained in:
Georg Brandl 2005-07-22 21:52:25 +00:00
parent 7eb4b7d177
commit 9443242463

View file

@ -92,7 +92,7 @@ def classname(object, modname):
return name return name
def isdata(object): def isdata(object):
"""Check if an object is of a type that probably means its data.""" """Check if an object is of a type that probably means it's data."""
return not (inspect.ismodule(object) or inspect.isclass(object) or return not (inspect.ismodule(object) or inspect.isclass(object) or
inspect.isroutine(object) or inspect.isframe(object) or inspect.isroutine(object) or inspect.isframe(object) or
inspect.istraceback(object) or inspect.iscode(object)) inspect.istraceback(object) or inspect.iscode(object))