]> granicus.if.org Git - python/commit
Fix bug in __import__ during Python shutdown
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 24 Mar 2016 23:40:59 +0000 (00:40 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 24 Mar 2016 23:40:59 +0000 (00:40 +0100)
commit4f17426437a5bdf458f8628936c3e37909fca448
tree3fca87d2576307f66a63f7152fe3a26893a31140
parente091d32a7ac514a415161043c4a70e1765363c5a
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).
Lib/importlib/_bootstrap.py
Misc/NEWS
Python/importlib.h