Show More
@@ -620,7 +620,7 def _function_pprint(obj, p, cycle): | |||||
620 |
|
620 | |||
621 | def _exception_pprint(obj, p, cycle): |
|
621 | def _exception_pprint(obj, p, cycle): | |
622 | """Base pprint for all exceptions.""" |
|
622 | """Base pprint for all exceptions.""" | |
623 |
if obj.__class__.__module__ |
|
623 | if obj.__class__.__module__ in ('exceptions', 'builtins'): | |
624 | name = obj.__class__.__name__ |
|
624 | name = obj.__class__.__name__ | |
625 | else: |
|
625 | else: | |
626 | name = '%s.%s' % ( |
|
626 | name = '%s.%s' % ( |
General Comments 0
You need to be logged in to leave comments.
Login now