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