Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #19053: ZipExtFile.read1() with non-zero argument no more returns empty | Serhiy Storchaka | 2013-09-27 | 1 | -0/+39 |
| | | | | bytes until end of data. | ||||
* | Issue #17944: test_zipfile now discoverable and uses subclassing to | Serhiy Storchaka | 2013-07-22 | 1 | -849/+562 |
| | | | | | generate tests for different compression types. Fixed a bug with skipping some tests due to use of exhausted iterators. | ||||
* | Refactor recently added bugfix into more testable code by using a | Gregory P. Smith | 2013-02-03 | 1 | -12/+29 |
| | | | | | method for windows file name sanitization. Splits the unittest up into several based on platform. | ||||
* | Fix the test for issue #6972. | Serhiy Storchaka | 2013-02-02 | 1 | -5/+17 |
|\ | | | | | | | Remove trailing dots on Windows. | ||||
| * | Fix the test for issue #6972. | Serhiy Storchaka | 2013-02-02 | 1 | -5/+17 |
| | | | | | | | | Remove trailing dots on Windows. | ||||
* | | Fixes Issue #6972: The zipfile module no longer overwrites files outside of | Gregory P. Smith | 2013-02-01 | 1 | -9/+77 |
|\ \ | |/ | | | | | its destination path when extracting malicious zip files. | ||||
| * | Fixes Issue #6972: The zipfile module no longer overwrites files outside of | Gregory P. Smith | 2013-02-01 | 1 | -9/+77 |
| | | | | | | | | its destination path when extracting malicious zip files. | ||||
* | | Issue #4844: ZipFile now raises BadZipFile when opens a ZIP file with an | Serhiy Storchaka | 2013-01-31 | 1 | -0/+14 |
|\ \ | |/ | | | | | | | 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 an | Serhiy Storchaka | 2013-01-31 | 1 | -0/+14 |
| | | | | | | | | | | 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 invalid | Serhiy Storchaka | 2013-01-29 | 1 | -1/+25 |
|\ \ | |/ | | | | | Python file. Patch by Ben Morgan. | ||||
| * | Issue #12004: Fix an internal error in PyZipFile when writing an invalid | Serhiy Storchaka | 2013-01-29 | 1 | -1/+24 |
| | | | | | | | | Python file. Patch by Ben Morgan. | ||||
* | | Issue #16714: use 'raise' exceptions, don't 'throw'. | Andrew Svetlov | 2012-12-18 | 1 | -1/+1 |
|\ \ | |/ | | | | | Patch by Serhiy Storchaka. | ||||
| * | Issue #16714: use 'raise' exceptions, don't 'throw'. | Andrew Svetlov | 2012-12-18 | 1 | -1/+1 |
| | | | | | | | | Patch by Serhiy Storchaka. | ||||
| * | #14313: zipfile now raises NotImplementedError when the compression type is ↵ | Ezio Melotti | 2012-11-18 | 1 | -0/+11 |
| | | | | | | | | unknown. | ||||
* | | Issue #9239: add tests for modifying zipfile comments in append mode. | Antoine Pitrou | 2012-06-30 | 1 | -0/+18 |
|\ \ | |/ | |||||
| * | Issue #9239: add tests for modifying zipfile comments in append mode. | Antoine Pitrou | 2012-06-30 | 1 | -0/+18 |
| | | |||||
| * | #14399: zipfile now correctly handles comments added to empty zipfiles. | R David Murray | 2012-04-12 | 1 | -0/+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. | ||||
* | | Issue #14366: Support lzma compression in zip files. | Martin v. Löwis | 2012-05-13 | 1 | -1/+124 |
| | | | | | | | | Patch by Serhiy Storchaka. | ||||
* | | Check extract_version when opening a zipfile. | Martin v. Löwis | 2012-05-01 | 1 | -0/+10 |
| | | |||||
* | | Detect unsupported compression types. | Martin v. Löwis | 2012-05-01 | 1 | -0/+11 |
| | | |||||
* | | Issue #14371: Support bzip2 in zipfile module. | Martin v. Löwis | 2012-05-01 | 1 | -1/+125 |
| | | | | | | | | Patch by Serhiy Storchaka. | ||||
* | | Merge #14399: zipfile now correctly handles comments added to empty zipfiles. | R David Murray | 2012-04-12 | 1 | -0/+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. | ||||
* | | default - Fix closes Issue6090 - Raise a ValueError, instead of failing with ↵ | Senthil Kumaran | 2011-10-19 | 1 | -0/+16 |
|\ \ | |/ | | | | | | | | | | | unrelated exceptions, when a document with timestamp earlier than 1980 is provided to zipfile. Patch contributed by Petri Lehtinen. | ||||
| * | 3.2 - Fix closes Issue6090 - Raise a ValueError, instead of failing with ↵ | Senthil Kumaran | 2011-10-19 | 1 | -0/+11 |
| | | | | | | | | | | | | | | unrelated exceptions, when a document with timestamp earlier than 1980 is provided to zipfile. Patch contributed by Petri Lehtinen. | ||||
* | | Merge #10694: zipfile now ignores garbage at the end of a zipfile. | R David Murray | 2011-06-09 | 1 | -0/+18 |
|\ \ | |/ | |||||
| * | #10694: zipfile now ignores garbage at the end of a zipfile. | R David Murray | 2011-06-09 | 1 | -0/+18 |
| | | | | | | | | Original fix by 'rep', final patch (with tests) by Xuanji Li. | ||||
| * | Skip test that requires zlib when zlib is not available. | Ezio Melotti | 2011-03-14 | 1 | -0/+1 |
| | | |||||
* | | Refactor a few tests to use the new requires_zlib decorator. | Ezio Melotti | 2011-05-19 | 1 | -39/+32 |
| | | |||||
* | | Skip test if zlib not present. Closes #11498. Patch by Natalia B. Bidart. | Eric V. Smith | 2011-03-14 | 1 | -0/+1 |
|/ | |||||
* | #10801: do not actually extract, just open() the files in the test zipfile. | Georg Brandl | 2011-01-01 | 1 | -9/+4 |
| | |||||
* | #10801: In zipfile, support different encodings for the header and the ↵ | Georg Brandl | 2011-01-01 | 1 | -0/+14 |
| | | | | filenames. Patch by MvL, test by Eli Bendersky. | ||||
* | #4871: check that zipfile password is bytes, and give useful error message. | R. David Murray | 2010-12-21 | 1 | -0/+6 |
| | | | | | | | | | 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 Brandl | 2010-12-04 | 1 | -0/+16 |
| | | | | and provide an interface to it in py_compile, compileall and PyZipFile. | ||||
* | zipfile: remove remaining ResourceWarnings | Łukasz Langa | 2010-11-23 | 1 | -11/+10 |
| | |||||
* | Fix #8886. Use context managers throughout the test. | Brian Curtin | 2010-11-18 | 1 | -105/+107 |
| | |||||
* | start banging on zipfile's file leakiness | Benjamin Peterson | 2010-10-31 | 1 | -9/+48 |
| | |||||
* | #7351: add more consistent exception name alias. | Georg Brandl | 2010-10-28 | 1 | -11/+11 |
| | |||||
* | #1710703: write zipfile structures also in the case of closing a new, but ↵ | Georg Brandl | 2010-10-14 | 1 | -0/+25 |
| | | | | empty, archive. | ||||
* | Issue #9837: The read() method of ZipExtFile objects (as returned by | Antoine Pitrou | 2010-09-12 | 1 | -0/+20 |
| | | | | ZipFile.open()) could return more bytes than requested. | ||||
* | Issue #7467: when a file from a ZIP archive, its CRC is checked and a | Antoine Pitrou | 2010-08-12 | 1 | -0/+79 |
| | | | | | BadZipfile error is raised if it doesn't match (as used to be the case in Python 2.5 and earlier). | ||||
* | PEP 3147 | Barry Warsaw | 2010-04-17 | 1 | -1/+8 |
| | |||||
* | Merged revisions 78097 via svnmerge from | Ronald Oussoren | 2010-02-07 | 1 | -0/+14 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78097 | ronald.oussoren | 2010-02-07 21:18:02 +0100 (Sun, 07 Feb 2010) | 2 lines Issue 6003: ZipFile.writestr "compression_type" argument ........ | ||||
* | Merged revisions 77798 via svnmerge from | Antoine Pitrou | 2010-01-27 | 1 | -0/+84 |
| | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77798 | antoine.pitrou | 2010-01-27 21:59:50 +0100 (mer., 27 janv. 2010) | 8 lines Issue #7610: Reworked implementation of the internal :class:`zipfile.ZipExtFile` class used to represent files stored inside an archive. The new implementation is significantly faster and can be wrapped in a :class:`io.BufferedReader` object for more speedups. It also solves an issue where interleaved calls to `read()` and `readline()` give wrong results. Patch by Nir Aides. ........ | ||||
* | Merged revisions 77727 via svnmerge from | Ezio Melotti | 2010-01-24 | 1 | -0/+1 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77727 | ezio.melotti | 2010-01-24 18:58:36 +0200 (Sun, 24 Jan 2010) | 1 line use assert[Not]IsInstance where appropriate ........ | ||||
* | use assert[Not]In where appropriate | Benjamin Peterson | 2010-01-19 | 1 | -21/+21 |
| | | | | A patch from Dave Malcolm. | ||||
* | Merged revisions 77178 via svnmerge from | Ezio Melotti | 2009-12-31 | 1 | -102/+97 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77178 | ezio.melotti | 2009-12-31 15:00:43 +0200 (Thu, 31 Dec 2009) | 1 line cleanup and refactoring ........ | ||||
* | Merged revisions 77136 via svnmerge from | Ezio Melotti | 2009-12-30 | 1 | -483/+448 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77136 | ezio.melotti | 2009-12-30 08:14:51 +0200 (Wed, 30 Dec 2009) | 1 line #5511: Added the ability to use ZipFile as a context manager. Patch by Brian Curtin. ........ | ||||
* | Merged revisions 74754 via svnmerge from | Ezio Melotti | 2009-09-12 | 1 | -0/+3 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74754 | ezio.melotti | 2009-09-12 17:43:43 +0300 (Sat, 12 Sep 2009) | 1 line #6026 - fix tests that failed without zlib ........ | ||||
* | Merged revisions 74245 via svnmerge from | Amaury Forgeot d'Arc | 2009-07-28 | 1 | -0/+10 |
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74245 | amaury.forgeotdarc | 2009-07-29 00:15:30 +0200 (mer., 29 juil. 2009) | 3 lines #6511: ZipFile will now raise BadZipfile when opening an empty or tiny file, like it does for larger invalid files. ........ | ||||
* | Merged revisions 74011 via svnmerge from | Ezio Melotti | 2009-07-15 | 1 | -127/+127 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74011 | ezio.melotti | 2009-07-15 20:07:04 +0300 (Wed, 15 Jul 2009) | 1 line methods' names pep8ification ........ |