summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-24 23:40:59 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-03-24 23:40:59 (GMT)
commit4f17426437a5bdf458f8628936c3e37909fca448 (patch)
tree3fca87d2576307f66a63f7152fe3a26893a31140 /Misc
parente091d32a7ac514a415161043c4a70e1765363c5a (diff)
downloadcpython-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/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index f483735..d684c82 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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