Base pprint for all exceptions.
(obj, p, cycle)
| 815 | |
| 816 | |
| 817 | def _exception_pprint(obj, p, cycle): |
| 818 | """Base pprint for all exceptions.""" |
| 819 | name = getattr(obj.__class__, '__qualname__', obj.__class__.__name__) |
| 820 | if obj.__class__.__module__ not in ('exceptions', 'builtins'): |
| 821 | name = '%s.%s' % (obj.__class__.__module__, name) |
| 822 | |
| 823 | p.pretty(CallExpression(name, *getattr(obj, 'args', ()))) |
| 824 | |
| 825 | |
| 826 | #: the exception base |
nothing calls this directly
no test coverage detected
searching dependent graphs…