Skip to content

python -m zipfile issues RuntimeWarning #112578

@hauntsaninja

Description

@hauntsaninja

Running python -m zipfile on main gives:

<frozen runpy>:128: RuntimeWarning: 'zipfile.__main__' found in sys.modules after import of package 'zipfile', but prior to execution of 'zipfile.__main__'; this may result in unpredictable behaviour 

This can be traced to #98103
Originally reported at #98098 (comment)

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directory

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions