##// END OF EJS Templates
Checks for metaclass's __repr__ in _type_pprint...
Remi Rampin -
Show More
@@ -682,6 +682,12 b' def _type_pprint(obj, p, cycle):'
682 682 """The pprint for classes and types."""
683 683 # Heap allocated types might not have the module attribute,
684 684 # and others may set it to None.
685
686 # Checks for a __repr__ override in the metaclass
687 if type(obj).__repr__ is not type.__repr__:
688 p.text(repr(obj))
689 return
690
685 691 mod = _safe_getattr(obj, '__module__', None)
686 692 name = _safe_getattr(obj, '__qualname__', obj.__name__)
687 693
General Comments 0
You need to be logged in to leave comments. Login now