summaryrefslogtreecommitdiff
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2015-12-03 01:23:10 +0000
committerMartin Panter <vadmium+py@gmail.com>2015-12-03 01:23:10 +0000
commit5efdbbfdb60e3005da10e6814ab298f2ee5edabc (patch)
treec5b0464c2a65c75b9ce119a7b5646640aedb21b3 /Python/Python-ast.c
parent4e41a9e6be13d6bc7f74ac406636826a26178151 (diff)
downloadcpython-5efdbbfdb60e3005da10e6814ab298f2ee5edabc.tar.gz
Issue #14285: Do not catch __init__.py exceptions in runpy
Initialize package before calling find_spec() for __main__, so that we do not incorrectly handle exceptions from __init__.py. When runpy is used from the Python CLI, use an internal exception rather than ImportError, to avoid catching unexpected exceptions. Also remove exception message rewriting in _run_module_as_main(), because it seems to be redundant with the _get_main_module_details() function.
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions