Skip to content

Archive class should be a context manager #2

@icemac

Description

@icemac

This would allow something like:

with archive.Archive('files.tgz') as files:
    files.extract()

On exit of the context manager the archive file could be closed instead of relying on __del__().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions