Issue #4756: zipfile.is_zipfile() now supports file-like objects.
Patch by Gabriel Genellina.
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 @@
.. 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