##// END OF EJS Templates
remove Python2 specific code
Srinivas Reddy Thatiparthy -
Show More
@@ -403,8 +403,7 b' class Inspector(Colorable):'
403 403
404 404 if inspect.isclass(obj):
405 405 header = self.__head('Class constructor information:\n')
406 elif (not py3compat.PY3) and type(obj) is types.InstanceType:
407 obj = obj.__call__
406
408 407
409 408 output = self._getdef(obj,oname)
410 409 if output is None:
@@ -636,13 +635,7 b' class Inspector(Colorable):'
636 635 # General Python objects
637 636 append_field(_mime, 'Signature', 'definition', code_formatter)
638 637 append_field(_mime, 'Call signature', 'call_def', code_formatter)
639
640 638 append_field(_mime, 'Type', 'type_name')
641
642 # Base class for old-style instances
643 if (not py3compat.PY3) and isinstance(obj, types.InstanceType) and info['base_class']:
644 append_field(_mime, 'Base Class', 'base_class')
645
646 639 append_field(_mime, 'String form', 'string_form')
647 640
648 641 # Namespace
General Comments 0
You need to be logged in to leave comments. Login now