diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-24 23:40:59 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-24 23:40:59 (GMT) |
commit | 4f17426437a5bdf458f8628936c3e37909fca448 (patch) | |
tree | 3fca87d2576307f66a63f7152fe3a26893a31140 /Misc | |
parent | e091d32a7ac514a415161043c4a70e1765363c5a (diff) | |
download | cpython-4f17426437a5bdf458f8628936c3e37909fca448.zip cpython-4f17426437a5bdf458f8628936c3e37909fca448.tar.gz cpython-4f17426437a5bdf458f8628936c3e37909fca448.tar.bz2 |
Fix bug in __import__ during Python shutdown
Issue #26637: The importlib module now emits an ImportError rather than a
TypeError if __import__() is tried during the Python shutdown process but
sys.path is already cleared (set to None).
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -232,6 +232,11 @@ Core and Builtins Library ------- +- Issue #26637: The :mod:`importlib` module now emits an :exc:`ImportError` + rather than a :exc:`TypeError` if :func:`__import__` is tried during the + Python shutdown process but :data:`sys.path` is already cleared (set to + ``None``). + - Issue #21925: :func:`warnings.formatwarning` now catches exceptions when calling :func;`linecache.getline` and :func:`tracemalloc.get_object_traceback` to be able to log |