]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] GH-95815: Document less specific error for os.remove (GH-99571) (#99641)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 21 Nov 2022 11:04:55 +0000 (03:04 -0800)
committerGitHub <noreply@github.com>
Mon, 21 Nov 2022 11:04:55 +0000 (12:04 +0100)
commitbb4c09158324e0369e5cc1f6a021ebe144703202
treeffdb3c1546075779fea9f10b38fed434bd694f88
parentaa067868ec20f7d9b9f4f36b4a9daebfa74efec5
[3.11] GH-95815: Document less specific error for os.remove (GH-99571) (#99641)

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>
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Doc/library/os.rst