Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue 6003: ZipFile.writestr "compression_type" argument | Ronald Oussoren | 2010-02-07 | 1 | -1/+5 |
| | |||||
* | avoid to use zlib when the compress type is not ZIP_DEFLATED | Ezio Melotti | 2010-01-28 | 1 | -6/+8 |
| | |||||
* | Issue #7610: Reworked implementation of the internal | Antoine Pitrou | 2010-01-27 | 1 | -187/+152 |
| | | | | | | | | :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. | ||||
* | #5511: Added the ability to use ZipFile as a context manager. Patch by Brian ↵ | Ezio Melotti | 2009-12-30 | 1 | -0/+6 |
| | | | | Curtin. | ||||
* | #6511: ZipFile will now raise BadZipfile when opening an empty or tiny file, | Amaury Forgeot d'Arc | 2009-07-28 | 1 | -1/+4 |
| | | | | like it does for larger invalid files. | ||||
* | Fixes the last problem mentioned in issue1202. | Gregory P. Smith | 2009-06-26 | 1 | -1/+1 |
| | |||||
* | Issue #6050: Don't fail extracting a directory from a zipfile if | Martin v. Löwis | 2009-05-24 | 1 | -1/+2 |
| | | | | the directory already exists. | ||||
* | make sure files are closed using the with statement | Benjamin Peterson | 2009-05-10 | 1 | -25/+23 |
| | |||||
* | Issue #5692: In :class:`zipfile.Zipfile`, fix wrong path calculation when ↵ | Antoine Pitrou | 2009-05-04 | 1 | -1/+3 |
| | | | | extracting a file to the root directory. | ||||
* | revert unrelated change | Benjamin Peterson | 2009-05-02 | 1 | -3/+1 |
| | |||||
* | remove py3k compat code | Benjamin Peterson | 2009-05-02 | 1 | -1/+3 |
| | |||||
* | Issue #4710: Extract directories properly in the zipfile module; | Martin v. Löwis | 2009-01-24 | 1 | -3/+20 |
| | | | | allow adding directories to a zipfile. | ||||
* | follow-up of #3997: since 0xFFFF numbers are not enough to indicate a zip64 ↵ | Amaury Forgeot d'Arc | 2009-01-17 | 1 | -11/+6 |
| | | | | | | format, always try to read the "zip64 end of directory structure". | ||||
* | #3997: zipfiles generated with more than 65536 files could not be opened | Amaury Forgeot d'Arc | 2009-01-17 | 1 | -7/+13 |
| | | | | | | with other applications. Reviewed by Martin, will backport to 2.6 and 3.0 | ||||
* | Issue #4756: zipfile.is_zipfile() now supports file-like objects. | Antoine Pitrou | 2008-12-27 | 1 | -7/+19 |
| | | | | Patch by Gabriel Genellina. | ||||
* | Issue #3535: zipfile couldn't read some zip files larger than 2GB. | Antoine Pitrou | 2008-09-05 | 1 | -3/+3 |
| | | | | Reviewed by Amaury Forgeot d'Arc. | ||||
* | fix ZipFile.testzip() to work with very large embedded files | Antoine Pitrou | 2008-08-17 | 1 | -1/+6 |
| | |||||
* | #3394: zipfile.writestr doesn't set external attributes, so files are ↵ | Antoine Pitrou | 2008-07-25 | 1 | -0/+1 |
| | | | | extracted mode 000 on Unix | ||||
* | #3317 in zipfile module, restore the previous names of global variables: | Amaury Forgeot d'Arc | 2008-07-11 | 1 | -55/+27 |
| | | | | | | some applications relied on them. Also remove duplicated lines. | ||||
* | Patch #1622: Correct interpretation of various ZIP header fields. | Martin v. Löwis | 2008-07-03 | 1 | -99/+204 |
| | | | | | | | | | Also fixes - Issue #1526: Allow more than 64k files to be added to Zip64 file. - Issue #1746: Correct handling of zipfile archive comments (previously archives with comments over 4k were flagged as invalid). Allow writing Zip files with archives by setting the 'comment' attribute of a ZipFile. | ||||
* | Patch #1775025: allow opening zipfile members via ZipInfo instances. | Georg Brandl | 2008-05-20 | 1 | -5/+8 |
| | | | | Patch by Graham Horler. | ||||
* | Issue #1734346: Support Unicode file names for zipfiles. | Martin v. Löwis | 2008-05-05 | 1 | -6/+24 |
| | |||||
* | Fix the struct module DeprecationWarnings that zipfile was triggering by | Gregory P. Smith | 2008-03-19 | 1 | -27/+37 |
| | | | | | | removing all use of signed struct values. test_zipfile and test_zipfile64 pass. no more warnings. | ||||
* | Use zlib's crc32 routine instead of binascii when available. zlib's is faster | Gregory P. Smith | 2008-03-19 | 1 | -3/+5 |
| | | | | when compiled properly optimized and about the same speed otherwise. | ||||
* | Document that zipfile decryption is insanely slow and fix a typo and | Gregory P. Smith | 2008-01-20 | 1 | -1/+1 |
| | | | | | blatant lie in a docstring (it is not useful for security regardless of how you spell it). | ||||
* | Fix zipfile decryption. The check for validity only worked on one | Gregory P. Smith | 2008-01-20 | 1 | -2/+11 |
| | | | | | | | | type of encrypted zip files. Files using extended local headers needed to compare the check byte against different values. (according to reading the infozip unzip crypt.c source code) Fixes issue1003. | ||||
* | Fixes/Accepts Patch for issue1189216 - Work properly with archives | Gregory P. Smith | 2008-01-19 | 1 | -2/+2 |
| | | | | that have file headers past the 2**31 byte boundary. | ||||
* | Fix 1698398: Zipfile.printdir() crashed because the format string expected ↵ | Raymond Hettinger | 2008-01-14 | 1 | -2/+2 |
| | | | | a tuple object of length six instead of a time.struct_time object. | ||||
* | #467924, patch by Alan McIntyre: Add ZipFile.extract and ZipFile.extractall. | Georg Brandl | 2008-01-07 | 1 | -1/+57 |
| | |||||
* | Patch #1675424: Added tests for uncovered code in the zipfile module. | Georg Brandl | 2007-07-12 | 1 | -3/+21 |
| | | | | | The KeyError raised by Zipfile.getinfo for nonexistent names now has a descriptive message. | ||||
* | Whitespace normalization. | Tim Peters | 2007-03-12 | 1 | -14/+14 |
| | |||||
* | Patch #1121142: Implement ZipFile.open. | Martin v. Löwis | 2007-03-06 | 1 | -39/+235 |
| | |||||
* | Patch #1517891: Make 'a' create the file if it doesn't exist. | Martin v. Löwis | 2007-02-13 | 1 | -1/+8 |
| | | | | Fixes #1514451. | ||||
* | Patch #698833: Support file decryption in zipfile. | Martin v. Löwis | 2007-02-13 | 1 | -1/+84 |
| | |||||
* | ZipFile.close(): Kill the other struct.pack deprecation | Tim Peters | 2006-07-31 | 1 | -1/+1 |
| | | | | | | | | | warning on Windows. Afraid I can't detect a pattern to when the pack formats decide to use a signed or unsigned format code -- appears nearly arbitrary to my eyes. So I left all the pack formats alone and changed the special-case data values instead. | ||||
* | ZipFile.close(): Killed one of the struct.pack deprecation | Tim Peters | 2006-07-31 | 1 | -1/+2 |
| | | | | | | | | | | | warnings on Win32. Also added an XXX about the line: pos3 = self.fp.tell() `pos3` is never referenced, and I have no idea what the code intended to do instead. | ||||
* | Whitespace normalization. | Tim Peters | 2006-06-15 | 1 | -11/+11 |
| | |||||
* | Patch #1446489 (zipfile: support for ZIP64) | Ronald Oussoren | 2006-06-15 | 1 | -53/+331 |
| | |||||
* | Bug #1413790: zipfile now sanitizes absolute archive names that are | Georg Brandl | 2006-02-20 | 1 | -3/+5 |
| | | | | not allowed by the specs. | ||||
* | Patch #1412872: zipfile: use correct system type on unixy systems. | Martin v. Löwis | 2006-02-05 | 1 | -2/+6 |
| | |||||
* | Remove dependency on order of mode flags | Raymond Hettinger | 2005-02-16 | 1 | -1/+1 |
| | |||||
* | Don't choke on modes like rb or wb. | Raymond Hettinger | 2004-11-06 | 1 | -1/+1 |
| | |||||
* | Make struct formats for specifying file size to be unsigned instead of signed | Brett Cannon | 2004-07-10 | 1 | -4/+4 |
| | | | | | | | | (ZIP file spec. says in section K, "General notes" in point 1 that unless specified otherwise values are unsigned and they are not specified as signed in the spec). Closes bug #679953. Thanks Jimmy Burgett. | ||||
* | [Bug #835415] AIX can return modes that are >65536, which causes an ↵ | Andrew M. Kuchling | 2004-07-10 | 1 | -1/+1 |
| | | | | OverflowError. Fix from Albert Chin | ||||
* | SF patch #756996: Bare except in ZipFile.testzip() | Raymond Hettinger | 2003-06-27 | 1 | -1/+1 |
| | | | | | | | | | (Contributed by Steven Taschuk) Replaces a bare except that caused all errors to be mis-reported as archive errors. Added a related NEWS item. | ||||
* | Remove debug print on filename with NUL byte. | Greg Ward | 2003-06-18 | 1 | -1/+0 |
| | |||||
* | SF patch #755987 (Jim Ahlstrom): | Greg Ward | 2003-06-18 | 1 | -16/+15 |
| | | | | | | | | | | | | | | | | | This is a patch for Bug 755031: If a null byte appears in a file name, Python zipfile.py retains it, but InfoZip terminates the name. Null bytes in file names are used as a trick by viruses. I tested WinZip, and it also truncates the file name at the null byte. The patch also fixes a buglet: If a zipfile incorrectly uses a directory separator other than '/', there was an invalid complaint that the central directory name does not match the file header name. I also removed my name from the top of the file. It was there for legal reasons which I believe no longer apply. Many people have worked on this file besides me. | ||||
* | Patch #661719: Expose compilation errors as exceptions on request. | Martin v. Löwis | 2003-01-15 | 1 | -1/+4 |
| | |||||
* | Patch #651621, approved by MvL. | Just van Rossum | 2002-12-12 | 1 | -2/+9 |
| | | | | | | | | | | | | | | | | This patch allows ZipFile.writestr() to be called with an archive file name instead of a ZipInfo instance: z = ZipFile("myarchive.zip", "w") z.writestr("foo/baz/file.ext", data) z.close() I found the old writestr() method very inconvenient for simple (but common) things. If called with a file name instead of a ZipInfo instance, the date_time is set to the current date/time, which makes sense to me for anonymous data. | ||||
* | Patch #611760: read archives with comments. | Martin v. Löwis | 2002-10-13 | 1 | -23/+48 |
| |