##// END OF EJS Templates
In pdef, only check for old style class instances on Python 2....
Thomas Kluyver -
Show More
@@ -354,7 +354,7 b' class Inspector:'
354 354 if inspect.isclass(obj):
355 355 header = self.__head('Class constructor information:\n')
356 356 obj = obj.__init__
357 elif type(obj) is types.InstanceType:
357 elif (not py3compat.PY3) and type(obj) is types.InstanceType:
358 358 obj = obj.__call__
359 359
360 360 output = self._getdef(obj,oname)
General Comments 0
You need to be logged in to leave comments. Login now