]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] GH-95815: Document less specific error for os.remove (GH-99571) (#99639)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 21 Nov 2022 11:05:32 +0000 (03:05 -0800)
committerGitHub <noreply@github.com>
Mon, 21 Nov 2022 11:05:32 +0000 (12:05 +0100)
commit101dfaedb202c5dc1d940bffc953ab1f9aa10bc7
tree355b697baf5dbc136d06f864b224908b91f4c702
parentad47c7d926a9f842a31247f4a15b5bb9f1566749
[3.10] GH-95815: Document less specific error for os.remove (GH-99571) (#99639)

GH-95815: Document less specific error for os.remove (GH-99571)

os.remove can raise PermissionError instead of IsADirectoryError,
when the object to be removed is a directory (in particular on
macOS).

This reverts a change done in GH-14262.
(cherry picked from commit 1cae31d26ba621f6b1f0656ad3d69a0236338bad)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Doc/library/os.rst