]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-74696: Do not change the current working directory in shutil.make_archive() if...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 22 Jun 2022 09:18:15 +0000 (02:18 -0700)
committerGitHub <noreply@github.com>
Wed, 22 Jun 2022 09:18:15 +0000 (11:18 +0200)
commitc1bfff4f6b4df7fa1ebfd7cf777aab37bc48cc2b
tree61afcf6659cf6520d33f2d4eb0aa988f8bdadade
parent3a119d277a9a3b209daf44bc084d59ad7846adff
gh-74696: Do not change the current working directory in shutil.make_archive() if possible (GH-93160) (GH-94105)

It is no longer changed when create a zip or tar archive.

It is still changed for custom archivers registered with shutil.register_archive_format()
if root_dir is not None.

Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit fda4b2f06364ae5ef91ecd9c09e2af380c8b0b4c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Doc/library/shutil.rst
Lib/shutil.py
Lib/test/test_shutil.py
Misc/NEWS.d/next/Library/2022-05-24-11-19-04.gh-issue-74696.-cnf-A.rst [new file with mode: 0644]