diff options
author | Bernhard M. Wiedemann <githubbmw@lsmod.de> | 2018-01-31 11:17:10 +0100 |
---|---|---|
committer | Ned Deily <nad@python.org> | 2018-01-31 17:01:55 -0500 |
commit | 57750be4ad3fa2cfd3473b5be1f1e1a5d0fa9f50 (patch) | |
tree | b8332ecd5d3b0bb10eedcf75b5ba5391c08fc33a /Doc/library/zipfile.rst | |
parent | 209108bd6997258948d13f48f2b5a2f1220c1a35 (diff) | |
download | cpython-git-57750be4ad3fa2cfd3473b5be1f1e1a5d0fa9f50.tar.gz |
bpo-30693: zip+tarfile: sort directory listing (#2263)
tarfile and zipfile now sort directory listing to generate tar and zip archives
in a more reproducible way.
See also https://reproducible-builds.org/docs/stable-inputs/ on that topic.
Diffstat (limited to 'Doc/library/zipfile.rst')
-rw-r--r-- | Doc/library/zipfile.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst index 7c9a8c8022..c0f2a89a3a 100644 --- a/Doc/library/zipfile.rst +++ b/Doc/library/zipfile.rst @@ -491,7 +491,7 @@ The :class:`PyZipFile` constructor takes the same parameters as the :file:`\*.pyc` are added at the top level. If the directory is a package directory, then all :file:`\*.pyc` are added under the package name as a file path, and if any subdirectories are package directories, - all of these are added recursively. + all of these are added recursively in sorted order. *basename* is intended for internal use only. @@ -524,6 +524,9 @@ The :class:`PyZipFile` constructor takes the same parameters as the .. versionchanged:: 3.6.2 The *pathname* parameter accepts a :term:`path-like object`. + .. versionchanged:: 3.7 + Recursion sorts directory entries. + .. _zipinfo-objects: |