Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ensure unpack_7zarchive closes the archive #584

Merged
merged 1 commit into from
May 23, 2024

Conversation

francoisfreitag
Copy link
Contributor

Pull request type

  • Feature enhancement

Which ticket is resolved?

None, it’s a pretty small implementation detail.

What does this PR change?

  • Always call SevenZipFile.close() even when there was an exception during extractall() in unpack_7zarchive().

py7zr/py7zr.py Outdated Show resolved Hide resolved
@miurahr miurahr merged commit c47a4f0 into miurahr:master May 23, 2024
24 checks passed
miurahr added a commit that referenced this pull request Jul 1, 2024
Fixed
-----
* Follow shutil.register_unpack_format() convention of raising a ReadError
  when the library cannot handle a file (#583)
* ensure unpack_7zarchive closes the archive (#584)
* 64bit OS detection (#580)

Added
-----
* Add recursive sub-directories and files extraction (#585)

Changed
-------
* check targets argument type for read and extract method (#577)
* Treat zero byte stream as a file (#551)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants