]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-74696: Do not change the current working directory in shutil.make_archive() if...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 22 Jun 2022 08:47:25 +0000 (11:47 +0300)
committerGitHub <noreply@github.com>
Wed, 22 Jun 2022 08:47:25 +0000 (10:47 +0200)
commitfda4b2f06364ae5ef91ecd9c09e2af380c8b0b4c
treefb0f9d691445d6d875857c65746493714e4142a7
parentf805d37641bd982fd7f252e51e2fdae836fce61c
gh-74696: Do not change the current working directory in shutil.make_archive() if possible (GH-93160)

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>
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]