]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43219: shutil.copyfile, raise a less confusing exception instead of IsADirectoryE...
authorandrei kulakov <andrei.avk@gmail.com>
Sat, 10 Jul 2021 03:47:41 +0000 (23:47 -0400)
committerGitHub <noreply@github.com>
Sat, 10 Jul 2021 03:47:41 +0000 (20:47 -0700)
commit248173cc0483a9ad9261353302f1234cf9eb2ebe
tree1af4ee52325ed4a50696de8d68853cde4dc9464a
parentf24777c2b329974b69d2a3bf5cfc37e0fcace36c
bpo-43219: shutil.copyfile, raise a less confusing exception instead of IsADirectoryError (GH-27049)

Fixes the misleading IsADirectoryError to be FileNotFoundError.
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]