]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] bpo-43219: shutil.copyfile, raise a less confusing exception instead of IsADire...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 10 Jul 2021 04:13:59 +0000 (21:13 -0700)
committerGitHub <noreply@github.com>
Sat, 10 Jul 2021 04:13:59 +0000 (21:13 -0700)
commitc89f0b2587eb0b16175a0bbb12d0b86314ff9320
treee2ee62219d8968030c2400dbf3e3907834e36804
parent302df02789d041a09760f86295ea6b4dcd81aa1d
[3.9] bpo-43219: shutil.copyfile, raise a less confusing exception instead of IsADirectoryError (GH-27049) (GH-27082)

Fixes the misleading IsADirectoryError to be FileNotFoundError.
(cherry picked from commit 248173cc0483a9ad9261353302f1234cf9eb2ebe)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Automerge-Triggered-By: GH:gpshead
Lib/shutil.py
Lib/test/test_shutil.py
Misc/NEWS.d/next/Library/2021-07-09-07-14-37.bpo-41928.Q1jMrr.rst [new file with mode: 0644]