|
if hasattr(filename, "read"): |
|
result = _check_zipfile(fp=filename) |
When filename is BytesIO, is_zipfile don't set the position to the file header.
This will affect other codes.
And it's my first issues,i don't known how to report the question,sorry
Linked PRs
cpython/Lib/zipfile/__init__.py
Lines 243 to 244 in 4e75509
When filename is BytesIO, is_zipfile don't set the position to the file header.
This will affect other codes.
And it's my first issues,i don't known how to report the question,sorry
Linked PRs
zipfile.is_zipfile#122397