python-archive icon indicating copy to clipboard operation
python-archive copied to clipboard

Archive class should be a context manager

Open icemac opened this issue 9 years ago • 0 comments

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__().

icemac avatar Jan 05 '17 10:01 icemac