Staging: this is not the live site, pydocs.org.
Data Compression and Archiving
Quickly see if a file is a ZIP file by checking the magic number.
The filename argument may be a file or file-like object too.
Changed in 3.1
- 3.1: Support for file and file-like objects.