Kaydet (Commit) 98be9962 authored tarafından Georg Brandl's avatar Georg Brandl

#9238: zipfile does handle archive comments.

üst 222569dc
...@@ -12,10 +12,8 @@ advanced use of this module will require an understanding of the format, as ...@@ -12,10 +12,8 @@ advanced use of this module will require an understanding of the format, as
defined in `PKZIP Application Note defined in `PKZIP Application Note
<http://www.pkware.com/documents/casestudies/APPNOTE.TXT>`_. <http://www.pkware.com/documents/casestudies/APPNOTE.TXT>`_.
This module does not currently handle multi-disk ZIP files, or ZIP files This module does not currently handle multi-disk ZIP files.
which have appended comments (although it correctly handles comments It can handle ZIP files that use the ZIP64 extensions
added to individual archive members---for which see the :ref:`zipinfo-objects`
documentation). It can handle ZIP files that use the ZIP64 extensions
(that is ZIP files that are more than 4 GByte in size). It supports (that is ZIP files that are more than 4 GByte in size). It supports
decryption of encrypted files in ZIP archives, but it currently cannot decryption of encrypted files in ZIP archives, but it currently cannot
create an encrypted file. Decryption is extremely slow as it is create an encrypted file. Decryption is extremely slow as it is
...@@ -64,7 +62,6 @@ The module defines the following items: ...@@ -64,7 +62,6 @@ The module defines the following items:
Returns ``True`` if *filename* is a valid ZIP file based on its magic number, Returns ``True`` if *filename* is a valid ZIP file based on its magic number,
otherwise returns ``False``. *filename* may be a file or file-like object too. otherwise returns ``False``. *filename* may be a file or file-like object too.
This module does not currently handle ZIP files which have appended comments.
.. versionchanged:: 3.1 .. versionchanged:: 3.1
Support for file and file-like objects. Support for file and file-like objects.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment