##// END OF EJS Templates
Consistent pretty(a_class) on bogus qualname/name...
Danilo J. S. Bellini -
Show More
@@ -670,8 +670,10 b' def _type_pprint(obj, p, cycle):'
670 # Heap allocated types might not have the module attribute,
670 # Heap allocated types might not have the module attribute,
671 # and others may set it to None.
671 # and others may set it to None.
672
672
673 # Checks for a __repr__ override in the metaclass
673 # Checks for a __repr__ override in the metaclass. Can't compare the
674 if type(obj).__repr__ is not type.__repr__:
674 # type(obj).__repr__ directly because in PyPy the representation function
675 # inherited from type isn't the same type.__repr__
676 if [m for m in _get_mro(type(obj)) if "__repr__" in vars(m)][:1] != [type]:
675 _repr_pprint(obj, p, cycle)
677 _repr_pprint(obj, p, cycle)
676 return
678 return
677
679
General Comments 0
You need to be logged in to leave comments. Login now