diff options
author | Brett Cannon <brett@python.org> | 2014-11-21 17:19:28 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2014-11-21 17:19:28 (GMT) |
commit | b6e2556d8fbd172181aac09b7536563635af63a9 (patch) | |
tree | 07dcdf2a20ae9d8c82ead835491ab6ed7eccfaaa /Doc/whatsnew | |
parent | 8314690a26501b3693f9a1f18c85f240a6c973bb (diff) | |
download | cpython-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/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.5.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst index 1e8d639..079c80f 100644 --- a/Doc/whatsnew/3.5.rst +++ b/Doc/whatsnew/3.5.rst @@ -436,6 +436,12 @@ Changes in the Python API bytes-like object is required, not 'sometype'". (Contributed by Ezio Melotti in :issue:`16518`.) +* If the current directory is set to a directory that no longer exists then + :exc:`FileNotFoundError` will no longer be raised and instead + :meth:`~importlib.machinery.FileFinder.find_spec` will return ``None`` + **without** caching ``None`` in :data:`sys.path_importer_cache` which is + different than the typical case (:issue:`22834`). + Changes in the C API -------------------- |