Skip to content

finalize must be always called. #14

Closed

Description

@mgautierfr

There are two issues here :

  • One on libzim assuming that the finalize method will be call before deletion of the creator.
  • test_libzim.py not calling the finalize method.

For the second point, the more pythonic way to solve this is to use a contextmanager to force the call to finalize in the __exit__ method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions