]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42014: shutil.rmtree: call onerror with correct function (GH-22585)
authorMichal Čihař <michal@cihar.com>
Tue, 10 Nov 2020 16:06:02 +0000 (17:06 +0100)
committerGitHub <noreply@github.com>
Tue, 10 Nov 2020 16:06:02 +0000 (08:06 -0800)
commite59b2deffde61e5641cabd65034fa11b4db898ba
treec8f4405fcd90bbd902797987f817277fc4f8c92b
parent3eb284622579d04289d0e3b2e97fbf56df6e845e
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
Lib/shutil.py
Misc/NEWS.d/next/Library/2020-11-10-15-40-56.bpo-42014.ShM37l.rst [new file with mode: 0644]