FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.12] gh-99203: shutil.make_archive(): restore select CPython <= 3.10.5 behavior (GH-99802) by miss-islington · Pull Request #107998 · python/cpython · GitHub

/ cpython Public

[3.12] gh-99203: shutil.make_archive(): restore select CPython <= 3.10.5 behavior (GH-99802) - #107998

Merged
Yhg1s merged 1 commit into
python:3.12from
miss-islington:backport-a86df29-3.12
Aug 16, 2023
Merged

[3.12] gh-99203: shutil.make_archive(): restore select CPython <= 3.10.5 behavior (GH-99802)#107998
Yhg1s merged 1 commit into
python:3.12from
miss-islington:backport-a86df29-3.12

Conversation

miss-islington commented Aug 16, 2023
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

Restore following CPython <= 3.10.5 behavior of shutil.make_archive()
that went away as part of gh-93160:

Do not create an empty archive if root_dir is not a directory, and, in
that case, raise FileNotFoundError or NotADirectoryError regardless
of format choice. Beyond the brought-back behavior, the function may
now also raise these exceptions in dry_run mode.
(cherry picked from commit a86df29)

Co-authored-by: 6t8k 58048945+6t8k@users.noreply.github.com

….5 behavior (pythonGH-99802)

Restore following CPython <= 3.10.5 behavior of shutil.make_archive()
that went away as part of pythongh-93160:

Do not create an empty archive if root_dir is not a directory, and, in
that case, raise FileNotFoundError or NotADirectoryError regardless
of format choice. Beyond the brought-back behavior, the function may
now also raise these exceptions in dry_run mode.
(cherry picked from commit a86df29)

Co-authored-by: 6t8k <58048945+6t8k@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug report: shutil.make_archive() makes empty archive file even when root_dir does not exists

4 participants


Back | FazBrowse Home | New Git URL