https://github.com/python/cpython/blob/4e7550934941050f54c86338cd5e40cd565ceaf2/Lib/zipfile/__init__.py#L243-L244 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 <!-- gh-linked-prs --> ### Linked PRs * gh-122397 <!-- /gh-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