The pprint for the super type.
(obj, p, cycle)
| 610 | |
| 611 | |
| 612 | def _super_pprint(obj, p, cycle): |
| 613 | """The pprint for the super type.""" |
| 614 | p.begin_group(8, '<super: ') |
| 615 | p.pretty(obj.__thisclass__) |
| 616 | p.text(',') |
| 617 | p.breakable() |
| 618 | if PYPY: # In PyPy, super() objects don't have __self__ attributes |
| 619 | dself = obj.__repr__.__self__ |
| 620 | p.pretty(None if dself is obj else dself) |
| 621 | else: |
| 622 | p.pretty(obj.__self__) |
| 623 | p.end_group(8, '>') |
| 624 | |
| 625 | |
| 626 | def _re_pattern_pprint(obj, p, cycle): |
nothing calls this directly
no test coverage detected