You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
zipfile.is_zipfile() raises ValueError for file-like objects with a negative central directory offset #161094
Since 3.14, zipfile.is_zipfile() raises ValueError: negative seek value instead of returning False when given a file-like object such as io.BytesIO whose end of central directory record places the central directory before offset 0. A real file returns False, because the OSError from seek() is caught there; the ValueError also skips restoring the caller's file position.
Activity
gh-161094: Fix `zipfile.is_zipfile()` raising `ValueError` on file-li…
[3.14] gh-161094: Fix `zipfile.is_zipfile()` raising `ValueError` on …
[3.15] gh-161094: Fix `zipfile.is_zipfile()` raising `ValueError` on …