(fp)
| 216 | return b''.join(buffer) |
| 217 | |
| 218 | def _check_zipfile(fp): |
| 219 | try: |
| 220 | if _EndRecData(fp): |
| 221 | return True # file has correct magic number |
| 222 | except OSError: |
| 223 | pass |
| 224 | return False |
| 225 | |
| 226 | def is_zipfile(filename): |
| 227 | """Quickly see if a file is a ZIP file by checking the magic number. |
no test coverage detected