summaryrefslogtreecommitdiffstats
path: root/Lib/zipfile.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | Issue #20078: Reading malformed zipfiles no longer hangs with 100% CPUSerhiy Storchaka2014-01-091-0/+2
|\ \ | |/ | | | | consumption.
| * Issue #20078: Reading malformed zipfiles no longer hangs with 100% CPUSerhiy Storchaka2014-01-091-0/+2
| | | | | | | | consumption.
* | Issue #18585: speed zipfile import by only generating zipfile._ZipDecryptor ↵Daniel Holth2014-01-031-1/+3
| | | | | | | | on demand
* | Issue #15204: Deprecated the 'U' mode in file-like objects.Serhiy Storchaka2013-11-231-0/+4
| |
* | Issue #17201: ZIP64 extensions now are enabled by default.Serhiy Storchaka2013-11-231-4/+4
| | | | | | | | Patch by William Mallard.
* | add filtering of individual files to PyZipFileChristian Tismer2013-10-221-1/+10
| | | | | | | | | | | | changed output of debug messages to say "path" or "file" extended test for filtering certain files in a package added test for filtering files in a python dir (no package)
* | add a filterfunc to zip file.PyZipFile.writepy, issue 19274Christian Tismer2013-10-211-77/+84
| |
* | Issue #19053: ZipExtFile.read1() with non-zero argument no more returns emptySerhiy Storchaka2013-09-271-8/+15
|\ \ | |/ | | | | bytes until end of data.
| * Issue #19053: ZipExtFile.read1() with non-zero argument no more returns emptySerhiy Storchaka2013-09-271-8/+15
| | | | | | | | bytes until end of data.
* | Issue #15767: Excise the remaining instances of ModuleNotFoundErrorBrett Cannon2013-07-041-3/+3
| |
* | Issue #17177: Stop using imp in zipfileBrett Cannon2013-06-151-3/+3
| |
* | Move test___all__ over to unittest.main() and use ModuleNotFoundErrorBrett Cannon2013-06-131-3/+3
| |
* | Refactor recently added bugfix into more testable code by using aGregory P. Smith2013-02-031-7/+19
|\ \ | |/ | | | | | | method for windows file name sanitization. Splits the unittest up into several based on platform.
| * Refactor recently added bugfix into more testable code by using aGregory P. Smith2013-02-031-7/+19
| | | | | | | | | | method for windows file name sanitization. Splits the unittest up into several based on platform.
* | Fix the test for issue #6972.Serhiy Storchaka2013-02-021-1/+4
|\ \ | |/ | | | | Remove trailing dots on Windows.
| * Fix the test for issue #6972.Serhiy Storchaka2013-02-021-1/+4
| |\ | | | | | | | | | Remove trailing dots on Windows.
| | * Fix the test for issue #6972.Serhiy Storchaka2013-02-021-1/+4
| | | | | | | | | | | | Remove trailing dots on Windows.
* | | Fixes Issue #6972: The zipfile module no longer overwrites files outside ofGregory P. Smith2013-02-011-11/+16
|\ \ \ | |/ / | | | | | | its destination path when extracting malicious zip files.
| * | Fixes Issue #6972: The zipfile module no longer overwrites files outside ofGregory P. Smith2013-02-011-11/+16
| |\ \ | | |/ | | | | | | its destination path when extracting malicious zip files.
| | * Fixes Issue #6972: The zipfile module no longer overwrites files outside ofGregory P. Smith2013-02-011-11/+16
| | | | | | | | | | | | its destination path when extracting malicious zip files.
* | | Issue #4844: ZipFile now raises BadZipFile when opens a ZIP file with anSerhiy Storchaka2013-01-311-6/+19
|\ \ \ | |/ / | | | | | | | | | incomplete "End of Central Directory" record. Original patch by Guilherme Polo and Alan McIntyre.
| * | Issue #4844: ZipFile now raises BadZipFile when opens a ZIP file with anSerhiy Storchaka2013-01-311-6/+19
| |\ \ | | |/ | | | | | | | | | incomplete "End of Central Directory" record. Original patch by Guilherme Polo and Alan McIntyre.
| | * Issue #4844: ZipFile now raises BadZipFile when opens a ZIP file with anSerhiy Storchaka2013-01-311-6/+19
| | | | | | | | | | | | | | | incomplete "End of Central Directory" record. Original patch by Guilherme Polo and Alan McIntyre.
* | | Issue #12004: Fix an internal error in PyZipFile when writing an invalidSerhiy Storchaka2013-01-291-1/+1
|\ \ \ | |/ / | | | | | | Python file. Patch by Ben Morgan.