A pprint that just redirects to the normal repr function.
(obj, p, cycle)
| 790 | |
| 791 | |
| 792 | def _repr_pprint(obj, p, cycle): |
| 793 | """A pprint that just redirects to the normal repr function.""" |
| 794 | # Find newlines and replace them with p.break_() |
| 795 | output = repr(obj) |
| 796 | lines = output.splitlines() |
| 797 | with p.group(): |
| 798 | for idx, output_line in enumerate(lines): |
| 799 | if idx: |
| 800 | p.break_() |
| 801 | p.text(output_line) |
| 802 | |
| 803 | |
| 804 | def _function_pprint(obj, p, cycle): |
no test coverage detected
searching dependent graphs…