]> 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:37 +0000 (02:18 -0700)
committerGitHub <noreply@github.com>
Wed, 22 Jun 2022 09:18:37 +0000 (11:18 +0200)
commite51a22b6f667474be615e313db3de86c4c664b32
treeeab75959b994a3ea938ba99f37da537e41cfb04a
parentddac87c1c1fc2f4fa25cea03aa7c3cf792035f5c
gh-74696: Do not change the current working directory in shutil.make_archive() if possible (GH-93160) (GH-94106)

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]