##// END OF EJS Templates
remove py2 code
Matthias Bussonnier -
Show More
@@ -484,11 +484,6 b' class GroupQueue(object):'
484 484 except ValueError:
485 485 pass
486 486
487 try:
488 _baseclass_reprs = (object.__repr__, types.InstanceType.__repr__)
489 except AttributeError: # Python 3
490 _baseclass_reprs = (object.__repr__,)
491
492 487
493 488 def _default_pprint(obj, p, cycle):
494 489 """
@@ -496,7 +491,7 b' def _default_pprint(obj, p, cycle):'
496 491 it's none of the builtin objects.
497 492 """
498 493 klass = _safe_getattr(obj, '__class__', None) or type(obj)
499 if _safe_getattr(klass, '__repr__', None) not in _baseclass_reprs:
494 if _safe_getattr(klass, '__repr__', None) is not object.__repr__:
500 495 # A user-provided repr. Find newlines and replace them with p.break_()
501 496 _repr_pprint(obj, p, cycle)
502 497 return
General Comments 0
You need to be logged in to leave comments. Login now