]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43219: shutil.copyfile, raise a less confusing exception instead of IsADirectoryE...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 10 Jul 2021 04:07:35 +0000 (21:07 -0700)
committerGitHub <noreply@github.com>
Sat, 10 Jul 2021 04:07:35 +0000 (21:07 -0700)
commit1577259cc51d0d46ad676798ce0a130039acf956
treeaa44697b7460159a142820809dc942ebdb510e6b
parentbff66d0c3f3f39b81f9a8dc7a6159a3e373a7bf0
bpo-43219: shutil.copyfile, raise a less confusing exception instead of IsADirectoryError (GH-27049)

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

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
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]