Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-37523: Raise ValueError for I/O operations on a closed ↵ | Daniel Hillier | 2019-11-30 | 1 | -0/+10 |
| | | | | | zipfile.ZipExtFile. (GH-14658) Raises ValueError when calling the following on a closed zipfile.ZipExtFile: read, readable, seek, seekable, tell. | ||||
* | bpo-38635: Simplify decoding the ZIP64 extra field and make it tolerant to ↵ | Serhiy Storchaka | 2019-11-09 | 1 | -37/+16 |
| | | | | extra data. (GH-16988) | ||||
* | bpo-36993: Improve error reporting for zipfiles with bad zip64 extra data. ↵ | Daniel Hillier | 2019-10-29 | 1 | -0/+12 |
| | | | | (GH-14656) | ||||
* | bpo-38334: Fix seeking backward on an encrypted zipfile.ZipExtFile. (GH-16937) | Serhiy Storchaka | 2019-10-27 | 1 | -26/+31 |
| | | | Test by Daniel Hillier. | ||||
* | bpo-36991: Fix incorrect exception escaping ZipFile.extract() (GH-13632) | Berker Peksag | 2019-09-12 | 1 | -0/+1 |
| | |||||
* | bpo-26185: Fix repr() on empty ZipInfo object (#13441) | Mickaël Schoentgen | 2019-09-09 | 1 | -5/+3 |
| | | | | | | | | | | | | * bpo-26185: Fix repr() on empty ZipInfo object It was failing on AttributeError due to inexistant but required attributes file_size and compress_size. They are now initialized to 0 in ZipInfo.__init__(). * Remove useless hasattr() in ZipInfo._open_to_write() * Completely remove file_size setting in _open_to_write(). | ||||
* | bpo-37772: fix zipfile.Path.iterdir() outputs (GH-15170) | shireenrao | 2019-08-24 | 1 | -6/+71 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix Path._add_implied_dirs to include all implied directories * fix Path._add_implied_dirs to include all implied directories * Optimize code by using sets instead of lists * 📜🤖 Added by blurb_it. * fix Path._add_implied_dirs to include all implied directories * Optimize code by using sets instead of lists * 📜🤖 Added by blurb_it. * Add tests to zipfile.Path.iterdir() fix * Update test for zipfile.Path.iterdir() * remove whitespace from test file * Rewrite NEWS blurb to describe the user-facing impact and avoid implementation details. * remove redundant [] within set comprehension * Update to use unique_everseen to maintain order and other suggestions in review * remove whitespace and add back add_dirs in tests * Add new standalone function parents using posixpath to get parents of a directory * removing whitespace (sorry) * Remove import pathlib from zipfile.py * Rewrite _parents as a slice on a generator of the ancestry of a path. * Remove check for '.' and '/', now that parents no longer returns those. * Separate calculation of implied dirs from adding those * Re-use _implied_dirs in tests for generating zipfile with dir entries. * Replace three fixtures (abcde, abcdef, abde) with one representative example alpharep. * Simplify implementation of _implied_dirs by collapsing the generation of parent directories for each name. | ||||
* | bpo-37520: Correct behavior for zipfile.Path.parent (GH-14638) | Jason R. Coombs | 2019-07-07 | 1 | -1/+1 |
| | | | | | | * bpo-37520: Correct behavior for zipfile.Path.parent * 📜🤖 Added by blurb_it. | ||||
* | Fix typos in docs and docstrings (GH-13745) | Xtreak | 2019-06-02 | 1 | -1/+1 |
| | |||||
* | bpo-22102: Fixes zip files with disks set to 0 (GH-5985) | Francisco Facioni | 2019-05-28 | 1 | -1/+1 |
| | |||||
* | Add support for .parent and .joinpath in zipfile.Path (#13213) | Jason R. Coombs | 2019-05-09 | 1 | -1/+10 |
| | |||||
* | bpo-36832: add zipfile.Path (#13153) | Jason R. Coombs | 2019-05-08 | 1 | -5/+139 |
| | | | | | | | | | | | | | | | | | | | | | | | | * bpo-36832: add zipfile.Path * bpo-36832: add documentation for zipfile.Path * 📜🤖 Added by blurb_it. * Remove module reference from blurb. * Sort the imports * Update docstrings and docs per recommendations. * Rely on test.support.temp_dir * Signal that 'root' is the parameter. * Correct spelling of 'mod' * Convert docstring to comment for brevity. * Fix more errors in the docs | ||||
* | bpo-36434: Properly handle writing errors in ZIP files. (GH-12559) | Serhiy Storchaka | 2019-03-30 | 1 | -41/+44 |
| | | | | | Errors during writing no longer prevent to properly close the ZIP file. | ||||
* | Fix typo duplicate period in a docstring in the zipfile module. (GH-12326) | nick sung | 2019-03-14 | 1 | -1/+1 |
| | |||||
* | bpo-32035: Fix words about strings and bytes in zipfile documentation. ↵ | Serhiy Storchaka | 2018-11-25 | 1 | -2/+2 |
| | | | | (GH-10592) | ||||
* | bpo-34472: Add data descriptor signature to zipfile (GH-8871) | Silas Sewell | 2018-09-18 | 1 | -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 Storchaka | 2018-09-17 | 1 | -0/+22 |
| | |||||
* | bpo-34097: Polish API design (GH-8725) | Marcel Plch | 2018-08-31 | 1 | -4/+4 |
| | | | Move strict_timestamps to constructor. | ||||
* | bpo-34097: Add support for zipping files older than 1980-01-01 (GH-8270) | Marcel Plch | 2018-08-02 | 1 | -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 Schoentgen | 2018-07-29 | 1 | -4/+3 |
| | |||||
* | bpo-30693: zip+tarfile: sort directory listing (#2263) | Bernhard M. Wiedemann | 2018-01-31 | 1 | -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 Jolly | 2018-01-30 | 1 | -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 Bayles | 2018-01-30 | 1 | -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 Pitrou | 2017-09-07 | 1 | -5/+1 |
| | | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility. | ||||
* | Revert bpo-26293 for zipfile breakage. See also bpo-29094. (#1484) | Serhiy Storchaka | 2017-05-06 | 1 | -14/+13 |
| | |||||
* | bpo-30017: Allowed calling the close() method of the zip entry writer object ↵ | Serhiy Storchaka | 2017-04-12 | 1 | -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 Storchaka | 2017-04-07 | 1 | -5/+2 |
| | |||||
* | bpo-10030: Sped up reading encrypted ZIP files by 2 times. (#550) | Serhiy Storchaka | 2017-03-30 | 1 | -57/+55 |
| | |||||
* | bpo-29774: Improve error reporting for corrupted extra field in ZIP file. (#583) | Serhiy Storchaka | 2017-03-09 | 1 | -1/+3 |
| | |||||
* | bpo-28231: The zipfile module now accepts path-like objects for external ↵ | Serhiy Storchaka | 2017-03-08 | 1 | -4/+16 |
| | | | | paths. (#511) | ||||
* | Issue #29094: Offsets in a ZIP file created with extern file object and modes | Serhiy Storchaka | 2017-01-01 | 1 | -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 modes | Serhiy Storchaka | 2017-01-01 | 1 | -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 modes | Serhiy Storchaka | 2017-01-01 | 1 | -2/+3 |
| | | | | | | | | | | | | "w" and "x" now are relative to the start of the file. | ||||
* | | | Remove unused imports. | Serhiy Storchaka | 2016-12-16 | 1 | -1/+0 |
| | | | |||||
* | | | Issue #28115: Command-line interface of the zipfile module now uses argparse. | Serhiy Storchaka | 2016-10-23 | 1 | -40/+37 |
| | | | | | | | | | | | | Added support of long options. | ||||
* | | | Issue #26293: Fixed writing ZIP files that starts not from the start of the | Serhiy Storchaka | 2016-10-07 | 1 | -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 the | Serhiy Storchaka | 2016-10-07 | 1 | -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 the | Serhiy Storchaka | 2016-10-07 | 1 | -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 Storchaka | 2016-09-13 | 1 | -5/+5 |
|/ / | | | | | | | Patch by Stephen J. Turnbull. | ||||
* | | Issue #24693: Changed some RuntimeError's in the zipfile module to more | Serhiy Storchaka | 2016-09-10 | 1 | -28/+28 |
| | | | | | | | | appropriate types. Improved some error messages and debugging output. | ||||
* | | Issue #27029: Removed deprecated support of universal newlines mode from ↵ | Serhiy Storchaka | 2016-06-11 | 1 | -46/+4 |
| | | | | | | | | ZipFile.open(). | ||||
* | | Issue #26039: Document ZipInfo.is_dir() and make force_zip64 keyword-only. | Serhiy Storchaka | 2016-05-15 | 1 | -1/+2 |
| | | | | | | | | Patch by Thomas Kluyver. | ||||
* | | Issue #26039: zipfile.ZipFile.open() can now be used to write data into a ZIP | Serhiy Storchaka | 2016-05-13 | 1 | -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 Storchaka | 2016-02-07 | 1 | -28/+47 |
|/ | | | | Patch by Thomas Kluyver. | ||||
* | Issue #22341: Drop Python 2 workaround and document CRC initial value | Martin Panter | 2015-12-11 | 1 | -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 directory | Serhiy Storchaka | 2015-11-22 | 1 | -1/+3 |
|\ | | | | | | | entries. Patch by Dingyuan Wang. | ||||
| * | Issue #25624: ZipFile now always writes a ZIP_STORED header for directory | Serhiy Storchaka | 2015-11-22 | 1 | -1/+3 |
| | | | | | | | | entries. Patch by Dingyuan Wang. | ||||
| * | Issue #14099: Backout changeset e5bb3044402b (except adapted tests). | Serhiy Storchaka | 2015-01-26 | 1 | -64/+39 |
| | | |||||
* | | Issue #25364: zipfile now works in threads disabled builds. | Serhiy Storchaka | 2015-10-10 | 1 | -1/+4 |
| | | |||||
* | | Issue #23731: Implement PEP 488. | Brett Cannon | 2015-04-13 | 1 | -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. |