Content-Length: 287602 | pFad | https://github.com/python/cpython/issues/122356

96 is_zipfile does not set the position to the file header · Issue #122356 · python/cpython · GitHub
Skip to content

is_zipfile does not set the position to the file header #122356

@0xMattina

Description

@0xMattina

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/122356

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy