]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-96005: Handle WASI ENOTCAPABLE in getpath (GH-96006)
authorChristian Heimes <christian@python.org>
Tue, 16 Aug 2022 18:20:15 +0000 (20:20 +0200)
committerGitHub <noreply@github.com>
Tue, 16 Aug 2022 18:20:15 +0000 (20:20 +0200)
commit48174fa0b949d6b1d0c1f074e7d4e47793759a43
tree0a226307f02413be0a6378aaf58a378004b5a3fb
parentf215d7cac9a6f9b51ba864e4252686dee4e45d64
gh-96005: Handle WASI ENOTCAPABLE in getpath (GH-96006)

- 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
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