##// END OF EJS Templates
Fix for pretty-printing builtin exceptions in Python 3.
Thomas Kluyver -
Show More
@@ -620,7 +620,7 b' def _function_pprint(obj, p, cycle):'
620 620
621 621 def _exception_pprint(obj, p, cycle):
622 622 """Base pprint for all exceptions."""
623 if obj.__class__.__module__ == 'exceptions':
623 if obj.__class__.__module__ in ('exceptions', 'builtins'):
624 624 name = obj.__class__.__name__
625 625 else:
626 626 name = '%s.%s' % (
General Comments 0
You need to be logged in to leave comments. Login now