Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Aug 16, 2023

Commits on Aug 16, 2023

  1. pythongh-99203: shutil.make_archive(): restore select CPython <= 3.10…

    ….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>
    6t8k authored and miss-islington committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    49d322b View commit details
    Browse the repository at this point in the history