summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2008-12-27 15:43:12 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2008-12-27 15:43:12 (GMT)
commit6f193e0e959432f2227c0380b970a82f58c8a0c8 (patch)
tree95cc667e9098a337288573b4e37ea93a4d0c7fdd /Doc
parente57e9990e72f83963a34c37c985bc72c5f27eae5 (diff)
downloadcpython-6f193e0e959432f2227c0380b970a82f58c8a0c8.zip
cpython-6f193e0e959432f2227c0380b970a82f58c8a0c8.tar.gz
cpython-6f193e0e959432f2227c0380b970a82f58c8a0c8.tar.bz2
Issue #4756: zipfile.is_zipfile() now supports file-like objects.
Patch by Gabriel Genellina.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/zipfile.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst
index 7ba5ffe..409ab86 100644
--- a/Doc/library/zipfile.rst
+++ b/Doc/library/zipfile.rst
@@ -66,9 +66,11 @@ The module defines the following items:
.. function:: is_zipfile(filename)
Returns ``True`` if *filename* is a valid ZIP file based on its magic number,
- otherwise returns ``False``. This module does not currently handle ZIP files
- which have appended comments.
+ 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:: 2.7
+ Support for file and file-like objects.
.. data:: ZIP_STORED