mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Remove the exceptions builtin module, all the exceptions are already builtin.
This commit is contained in:
parent
f543348fff
commit
2633c69fae
15 changed files with 34 additions and 66 deletions
|
@ -169,7 +169,7 @@ def format_exception_only(etype, value):
|
|||
|
||||
stype = etype.__name__
|
||||
smod = etype.__module__
|
||||
if smod not in ("exceptions", "__main__", "__builtin__"):
|
||||
if smod not in ("__main__", "__builtin__"):
|
||||
stype = smod + '.' + stype
|
||||
|
||||
if not issubclass(etype, SyntaxError):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue