mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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`.
This commit is contained in:
parent
f215d7cac9
commit
48174fa0b9
6 changed files with 31 additions and 4 deletions
|
@ -746,7 +746,12 @@ depending on the system error code.
|
|||
|
||||
Raised when trying to run an operation without the adequate access
|
||||
rights - for example filesystem permissions.
|
||||
Corresponds to :c:data:`errno` :py:data:`~errno.EACCES` and :py:data:`~errno.EPERM`.
|
||||
Corresponds to :c:data:`errno` :py:data:`~errno.EACCES`,
|
||||
:py:data:`~errno.EPERM`, and :py:data:`~errno.ENOTCAPABLE`.
|
||||
|
||||
.. versionchanged:: 3.11.1
|
||||
WASI's :py:data:`~errno.ENOTCAPABLE` is now mapped to
|
||||
:exc:`PermissionError`.
|
||||
|
||||
.. exception:: ProcessLookupError
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue