summaryrefslogtreecommitdiffstats
path: root/Lib/zipfile.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-34472: Add data descriptor signature to zipfile (GH-8871)Silas Sewell2018-09-181-2/+4
| | | | This makes streamed zips compatible with MacOS Archive Utility and other applications.
* bpo-34341: Fix appending to ZIP archives with the ZIP64 extension. (GH-8683)Serhiy Storchaka2018-09-171-0/+22
|
* bpo-34097: Polish API design (GH-8725)Marcel Plch2018-08-311-4/+4
| | | Move strict_timestamps to constructor.
* bpo-34097: Add support for zipping files older than 1980-01-01 (GH-8270)Marcel Plch2018-08-021-3/+9
| | | | | ZipFile can zip files older than 1980-01-01 and newer than 2107-12-31 using a new strict_timestamps parameter at the cost of setting the timestamp to the limit.
* bpo-34035: Fix several AttributeError in zipfile seek() methods. (GH-8527)Mickaël Schoentgen2018-07-291-4/+3
|
* bpo-30693: zip+tarfile: sort directory listing (#2263)Bernhard M. Wiedemann2018-01-311-3/+3
| | | | | | 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.
* bpo-22908: Add seek and tell functionality to ZipExtFile (GH-4966)John Jolly2018-01-301-0/+82
| | | | | This allows for nested zip files, tar files within zip files, zip files within tar files, etc. Contributed by: John Jolly
* bpo-21417: Add compresslevel= to the zipfile module (GH-5385)Bo Bayles2018-01-301-8/+35
| | | | | | This allows the compression level to be specified when writing zipfiles (for the entire file *and* overridden on a per-file basis). Contributed by Bo Bayles
* bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou2017-09-071-5/+1
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* Revert bpo-26293 for zipfile breakage. See also bpo-29094. (#1484)Serhiy Storchaka2017-05-061-14/+13
|
* bpo-30017: Allowed calling the close() method of the zip entry writer object ↵Serhiy Storchaka2017-04-121-0/+4
| | | | | | (#1041) multiple times. Writing to closed zip entry writer object now always produce a ValueError.
* bpo-29958: Minor improvements to zipfile and tarfile CLI. (#944)Serhiy Storchaka2017-04-071-5/+2
|
* bpo-10030: Sped up reading encrypted ZIP files by 2 times. (#550)Serhiy Storchaka2017-03-301-57/+55
|
* bpo-29774: Improve error reporting for corrupted extra field in ZIP file. (#583)Serhiy Storchaka2017-03-091-1/+3
|
* bpo-28231: The zipfile module now accepts path-like objects for external ↵Serhiy Storchaka2017-03-081-4/+16
| | | | paths. (#511)
* Issue #29094: Offsets in a ZIP file created with extern file object and modesSerhiy Storchaka2017-01-011-2/+3
|\ | | | | | | "w" and "x" now are relative to the start of the file.
| * Issue #29094: Offsets in a ZIP file created with extern file object and modesSerhiy Storchaka2017-01-011-2/+3
| |\ | | | | | | | | | "w" and "x" now are relative to the start of the file.
| | * Issue #29094: Offsets in a ZIP file created with extern file object and modesSerhiy Storchaka2017-01-011-2/+3
| | | | | | | | | | | | "w" and "x" now are relative to the start of the file.
* | | Remove unused imports.Serhiy Storchaka2016-12-161-1/+0
| | |
* | | Issue #28115: Command-line interface of the zipfile module now uses argparse.Serhiy Storchaka2016-10-231-40/+37
| | | | | | | | | | | | Added support of long options.
* | | Issue #26293: Fixed writing ZIP files that starts not from the start of theSerhiy Storchaka2016-10-071-15/+15
|\ \ \ | |/ / | | | | | | | | | file. Offsets in ZIP file now are relative to the start of the archive in conforming to the specification.
| * | Issue #26293: Fixed writing ZIP files that starts not from the start of theSerhiy Storchaka2016-10-071-15/+15
| |\ \ | | |/ | | | | | | | | | file. Offsets in ZIP file now are relative to the start of the archive in conforming to the specification.
| | * Issue #26293: Fixed writing ZIP files that starts not from the start of theSerhiy Storchaka2016-10-071-15/+15
| | | | | | | | | | | | | | | file. Offsets in ZIP file now are relative to the start of the archive in conforming to the specification.
* | | Issue #28102: The zipfile module CLI now prints usage to stderr.Serhiy Storchaka2016-09-131-5/+5
|/ / | | | | | | Patch by Stephen J. Turnbull.
* | Issue #24693: Changed some RuntimeError's in the zipfile module to moreSerhiy Storchaka2016-09-101-28/+28
| | | | | | | | appropriate types. Improved some error messages and debugging output.
* | Issue #27029: Removed deprecated support of universal newlines mode from ↵Serhiy Storchaka2016-06-111-46/+4
| | | | | | | | ZipFile.open().
* | Issue #26039: Document ZipInfo.is_dir() and make force_zip64 keyword-only.Serhiy Storchaka2016-05-151-1/+2
| | | | | | | | Patch by Thomas Kluyver.
* | Issue #26039: zipfile.ZipFile.open() can now be used to write data into a ZIPSerhiy Storchaka2016-05-131-105/+185
| | | | | | | | file, as well as for extracting data. Patch by Thomas Kluyver.
* | Issue #26039: Added zipfile.ZipInfo.from_file() and zipinfo.ZipInfo.is_dir().Serhiy Storchaka2016-02-071-28/+47
|/ | | | Patch by Thomas Kluyver.
* Issue #22341: Drop Python 2 workaround and document CRC initial valueMartin Panter2015-12-111-4/+4
| | | | Also align the parameter naming in binascii to be consistent with zlib.
* Issue #25624: ZipFile now always writes a ZIP_STORED header for directorySerhiy Storchaka2015-11-221-1/+3
|\ | | | | | | entries. Patch by Dingyuan Wang.
| * Issue #25624: ZipFile now always writes a ZIP_STORED header for directorySerhiy Storchaka2015-11-221-1/+3
| | | | | | | | entries. Patch by Dingyuan Wang.
| * Issue #14099: Backout changeset e5bb3044402b (except adapted tests).Serhiy Storchaka2015-01-261-64/+39
| |
* | Issue #25364: zipfile now works in threads disabled builds.Serhiy Storchaka2015-10-101-1/+4
| |
* | Issue #23731: Implement PEP 488.Brett Cannon2015-04-131-22/+35
| | | | | | | | | | | | The concept of .pyo files no longer exists. Now .pyc files have an optional `opt-` tag which specifies if any extra optimizations beyond the peepholer were applied.
* | Issue #21717: The zipfile.ZipFile.open function now supports 'x' (exclusiveSerhiy Storchaka2015-03-251-12/+14
| | | | | | | | creation) mode.
* | Issue #23252: Added support for writing ZIP files to unseekable streams.Serhiy Storchaka2015-03-221-22/+58
| |
* | Don't seek to the start of the file when open ZipFile with the 'w' modeSerhiy Storchaka2015-02-011-1/+1
| | | | | | | | (regression introduced in issue #14099).
* | Issue #14099: Restored support of writing ZIP files to tellable butSerhiy Storchaka2015-01-261-3/+13
| | | | | | | | non-seekable streams.
* | Issue #14099: Writing to ZipFile and reading multiple ZipExtFiles isSerhiy Storchaka2015-01-261-198/+209
| | | | | | | | threadsafe now.
* | Issue #14099: ZipFile.open() no longer reopen the underlying file. ObjectsSerhiy Storchaka2014-12-031-39/+64
|\ \ | |/ | | | | | | | | returned by ZipFile.open() can now operate independently of the ZipFile even if the ZipFile was created by passing in a file-like object as the first argument to the constructor.
| * Issue #14099: ZipFile.open() no longer reopen the underlying file. ObjectsSerhiy Storchaka2014-12-031-39/+64
| | | | | | | | | | | | returned by ZipFile.open() can now operate independently of the ZipFile even if the ZipFile was created by passing in a file-like object as the first argument to the constructor.
* | Issue #22217: Implemented reprs of classes in the zipfile module.Serhiy Storchaka2014-10-291-0/+50
|/
* Issue #22219: The zipfile module CLI now adds entries for directoriesSerhiy Storchaka2014-10-041-2/+9
| | | | (including empty directories) in ZIP file.
* Issue #20912: Now directories added to ZIP file have correct Unix and MS-DOSSerhiy Storchaka2014-09-231-1/+6
| | | | directory attributes.
* Issue #21866: ZipFile.close() no longer writes ZIP64 central directorySerhiy Storchaka2014-09-231-14/+24
| | | | records if allowZip64 is false.
* Issue #22201: Command-line interface of the zipfile module now correctlySerhiy Storchaka2014-08-171-12/+1
| | | | extracts ZIP files with directory entries. Patch by Ryan Wilson.
* Fix issue #14315: The zipfile module now ignores extra fields in the centralGregory P. Smith2014-05-301-1/+1
| | | | | | directory that are too short to be parsed instead of letting a struct.unpack error bubble up as this "bad data" appears in many real world zip files in the wild and is ignored by other zip tools.
* Issue #20262: Warnings are raised now when duplicate names are added in theSerhiy Storchaka2014-01-201-6/+6
|\ | | | | | | ZIP file or too long ZIP file comment is truncated.
| * Issue #20262: Warnings are raised now when duplicate names are added in theSerhiy Storchaka2014-01-201-6/+6
| | | | | | | | ZIP file or too long ZIP file comment is truncated.