summaryrefslogtreecommitdiffstats
path: root/Doc/library/importlib.rst
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2014-11-21 17:19:28 (GMT)
committerBrett Cannon <brett@python.org>2014-11-21 17:19:28 (GMT)
commitb6e2556d8fbd172181aac09b7536563635af63a9 (patch)
tree07dcdf2a20ae9d8c82ead835491ab6ed7eccfaaa /Doc/library/importlib.rst
parent8314690a26501b3693f9a1f18c85f240a6c973bb (diff)
downloadcpython-b6e2556d8fbd172181aac09b7536563635af63a9.zip
cpython-b6e2556d8fbd172181aac09b7536563635af63a9.tar.gz
cpython-b6e2556d8fbd172181aac09b7536563635af63a9.tar.bz2
Issue #22834: Have import suppress FileNotFoundError when the current
working directory no longer exists. Thanks to Martin Panter for the bug report.
Diffstat (limited to 'Doc/library/importlib.rst')
-rw-r--r--Doc/library/importlib.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
index beac9d7..3af8d62 100644
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -794,6 +794,11 @@ find and load modules.
.. versionadded:: 3.4
+ .. versionchanged:: 3.5
+ If the current working directory -- represented by an empty string --
+ is no longer valid then ``None`` is returned but no value is cached
+ in :data:`sys.path_importer_cache`.
+
.. classmethod:: find_module(fullname, path=None)
A legacy wrapper around :meth:`find_spec`.