A pprint that just redirects to the normal repr function.
(obj, p, cycle)
| 695 | |
| 696 | |
| 697 | def _repr_pprint(obj, p, cycle): |
| 698 | """A pprint that just redirects to the normal repr function.""" |
| 699 | # Find newlines and replace them with p.break_() |
| 700 | output = repr(obj) |
| 701 | lines = output.splitlines() |
| 702 | with p.group(): |
| 703 | for idx, output_line in enumerate(lines): |
| 704 | if idx: |
| 705 | p.break_() |
| 706 | p.text(output_line) |
| 707 | |
| 708 | |
| 709 | def _function_pprint(obj, p, cycle): |
no test coverage detected