Skip to content

Suggested fix to Zstd tar codec #34

@lmmx

Description

@lmmx

Comment from Ma Lin: ae185f9#r54497564

I search pyzstd on GitHub (I'm the author of it), then I found this code.

The .close() method was updated. If super().close() fails, .zstd_file can be closed at once.
This is a very minor fix.

            def close(self):
                try:
                    super().close()
                finally:
                    self.zstd_file.close()

in reference to

def close(self): # pragma: no cover
super().close()
self.zstd_file.close()

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