]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-96005: Handle WASI ENOTCAPABLE in getpath (GH-96006) (GH-96034) (GH-96038)
authorChristian Heimes <christian@python.org>
Tue, 13 Sep 2022 11:00:45 +0000 (13:00 +0200)
committerGitHub <noreply@github.com>
Tue, 13 Sep 2022 11:00:45 +0000 (13:00 +0200)
commitbc337a77666055283feeb3efbe17510dd038fb34
tree2f9867cab326bd97dbbf6cdbc58306a4f23f1380
parentc4cf745c723f19dbc5b304bfb21cf77ac9aa40b8
[3.11] gh-96005: Handle WASI ENOTCAPABLE in getpath (GH-96006) (GH-96034) (GH-96038)

- On WASI `ENOTCAPABLE` is now mapped to `PermissionError`.
- The `errno` modules exposes the new error number.
- `getpath.py` now ignores `PermissionError` when it cannot open landmark
  files `pybuilddir.txt` and `pyenv.cfg`.
Doc/library/errno.rst
Doc/library/exceptions.rst
Lib/test/test_exception_hierarchy.py
Misc/NEWS.d/next/Core and Builtins/2022-08-15-21-08-11.gh-issue-96005.6eoc8k.rst [new file with mode: 0644]
Modules/errnomodule.c
Modules/getpath.py
Objects/exceptions.c