summaryrefslogtreecommitdiffstats
path: root/Lib/zipfile.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.
| * | Issue #12004: Fix an internal error in PyZipFile when writing an invalidSerhiy Storchaka2013-01-291-1/+1
| |\ \ | | |/ | | | | | | Python file. Patch by Ben Morgan.
| | * Issue #12004: Fix an internal error in PyZipFile when writing an invalidSerhiy Storchaka2013-01-291-1/+1
| | | | | | | | | | | | Python file. Patch by Ben Morgan.
* | | Issue #9720: zipfile now writes correct local headers for files larger than ↵Serhiy Storchaka2013-01-141-14/+32
|\ \ \ | |/ / | | | | | | 4 GiB.
| * | Issue #9720: zipfile now writes correct local headers for files larger than ↵Serhiy Storchaka2013-01-141-15/+32
| |\ \ | | |/ | | | | | | 4 GiB.
| | * Issue #9720: zipfile now writes correct local headers for files larger than ↵Serhiy Storchaka2013-01-141-15/+32
| | | | | | | | | | | | 4 GiB.
| | * #14313: zipfile now raises NotImplementedError when the compression type is ↵Ezio Melotti2012-11-181-0/+28
| | | | | | | | | | | | unknown.
* | | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-6/+6
| | |
* | | Issue #16408: Fix file descriptors not being closed in error conditions in ↵Antoine Pitrou2012-11-171-234/+217
|\ \ \ | |/ / | | | | | | | | | | | | the zipfile module. Patch by Serhiy Storchaka.
| * | Issue #16408: Fix file descriptors not being closed in error conditions in ↵Antoine Pitrou2012-11-171-234/+217
| |\ \ | | |/ | | | | | | | | | | | | the zipfile module. Patch by Serhiy Storchaka.
| | * Issue #16408: Fix file descriptors not being closed in error conditions in ↵Antoine Pitrou2012-11-171-222/+205
| | | | | | | | | | | | | | | | | | the zipfile module. Patch by Serhiy Storchaka.
| | * #14399: zipfile now correctly handles comments added to empty zipfiles.R David Murray2012-04-121-11/+22
| | | | | | | | | | | | | | | | | | | | | | | | Patch by Serhiy Storchaka. This also moves the TypeError that results from trying to use a unicode comment from the 'close' step to the point at which the comment is added to the zipfile.
* | | #11981: remove duplicate line. Patch by Johan Euphrosine.Ezio Melotti2012-11-171-1/+0
|/ /
* | On behalf of Nadeem Vawda: issue #10376: micro-optimize reading from a Zipfile.Antoine Pitrou2012-06-231-8/+10
| | | | | | | | (patch by Serhiy)
* | Make lzma.{encode,decode}_filter_properties private.Nadeem Vawda2012-06-211-3/+3
| | | | | | | | | | | | | | | | These functions were originally added to support LZMA compression in the zipfile module, and are not of interest for the majority of users. They can be made public in 3.4 if there is user interest, but in the meanwhile, I've opted to present a smaller, simpler API for the module's initial release.
* | Issue #14366: Support lzma compression in zip files.Martin v. Löwis2012-05-131-16/+105
| | | | | | | | Patch by Serhiy Storchaka.
* | Check extract_version when opening a zipfile.Martin v. Löwis2012-05-011-0/+5
| |
* | Add missing comma in __all__ list.Georg Brandl2012-05-011-1/+1
| |
* | Recognize unsupported feature "compressed patch data set" from zip 2.7.Martin v. Löwis2012-05-011-0/+4
| |
* | Detect unsupported compression types.Martin v. Löwis2012-05-011-2/+19
| |
* | Issue #14371: Support bzip2 in zipfile module.Martin v. Löwis2012-05-011-91/+173
| | | | | | | | Patch by Serhiy Storchaka.
* | #14603: use a listcomp in ZipFile.namelist.Ezio Melotti2012-04-171-4/+1
| |
* | Merge #14399: zipfile now correctly handles comments added to empty zipfiles.R David Murray2012-04-121-11/+22
|/ | | | | | | | Patch by Serhiy Storchaka. This also moves the TypeError that results from trying to use a unicode comment from the 'close' step to the point at which the comment is added to the zipfile.
* 3.2 - Fix closes Issue6090 - Raise a ValueError, instead of failing with ↵Senthil Kumaran2011-10-191-0/+4
| | | | | | | unrelated exceptions, when a document with timestamp earlier than 1980 is provided to zipfile. Patch contributed by Petri Lehtinen.
* #10694: zipfile now ignores garbage at the end of a zipfile.R David Murray2011-06-091-10/+8
| | | | Original fix by 'rep', final patch (with tests) by Xuanji Li.
* #10801: In zipfile, support different encodings for the header and the ↵Georg Brandl2011-01-011-1/+7
| | | | filenames. Patch by MvL, test by Eli Bendersky.
* #4871: check that zipfile password is bytes, and give useful error message.R. David Murray2010-12-211-4/+10
| | | | | | | | | Previously passing a string in as the password would fail either with an assertion error or a TypeError with a confusing error message. Note that a string can't be accepted since zipfile has no way to guess what encoding should be used to turn it into bytes. Patch by Victor Stinner.
* Add an "optimize" parameter to compile() to control the optimization level, ↵Georg Brandl2010-12-041-31/+56
| | | | and provide an interface to it in py_compile, compileall and PyZipFile.
* zipfile: remove remaining ResourceWarningsŁukasz Langa2010-11-231-5/+14
|
* Issue #9846: ZipExtFile provides no mechanism for closing the underlying ↵Łukasz Langa2010-11-221-2/+12
| | | | file object
* start banging on zipfile's file leakinessBenjamin Peterson2010-10-311-1/+2
|
* Fix typo from r85874Éric Araujo2010-10-281-1/+1
|
* #7351: add more consistent exception name alias.Georg Brandl2010-10-281-14/+15
|
* #1710703: write zipfile structures also in the case of closing a new, but ↵Georg Brandl2010-10-141-5/+22
| | | | empty, archive.
* Issue #9837: The read() method of ZipExtFile objects (as returned byAntoine Pitrou2010-09-121-6/+9
| | | | ZipFile.open()) could return more bytes than requested.
* Issue #7467: when a file from a ZIP archive, its CRC is checked and aAntoine Pitrou2010-08-121-2/+23
| | | | | BadZipfile error is raised if it doesn't match (as used to be the case in Python 2.5 and earlier).