summaryrefslogtreecommitdiffstats
path: root/Lib/plat-aix4/IN.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2015-12-03 01:23:10 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2015-12-03 01:23:10 (GMT)
commit657257edb61c7d69a9e73352fdad8f243e1494ab (patch)
treea7a3a16c452b07b7d5120442a0c8cf05fc66b499 /Lib/plat-aix4/IN.py
parent6648bf5661b79f5b40385b21570dff6f146c5eb5 (diff)
downloadcpython-657257edb61c7d69a9e73352fdad8f243e1494ab.zip
cpython-657257edb61c7d69a9e73352fdad8f243e1494ab.tar.gz
cpython-657257edb61c7d69a9e73352fdad8f243e1494ab.tar.bz2
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 'Lib/plat-aix4/IN.py')
0 files changed, 0 insertions, 0 deletions