]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42014: shutil.rmtree: call onerror with correct function (GH-22585)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 10 Nov 2020 16:27:02 +0000 (08:27 -0800)
committerGitHub <noreply@github.com>
Tue, 10 Nov 2020 16:27:02 +0000 (08:27 -0800)
commitc745b36ee3786fabc9231a43c085218df27dcd47
treec9c90841f7ab751ff5e115b7fc2aefbd1ec1cab3
parent109c17315af124b25853c248f4a9bf00f03036f6
bpo-42014: shutil.rmtree: call onerror with correct function (GH-22585)

The onerror is supposed to be called with failed function, but in this case lstat is wrongly used instead of open.

Not sure if this needs bug or not...

Automerge-Triggered-By: GH:hynek
(cherry picked from commit e59b2deffde61e5641cabd65034fa11b4db898ba)

Co-authored-by: Michal Čihař <michal@cihar.com>
Lib/shutil.py
Misc/NEWS.d/next/Library/2020-11-10-15-40-56.bpo-42014.ShM37l.rst [new file with mode: 0644]