Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kba
Copy link
Member

@kba kba commented Nov 13, 2023

The __exit__ method in OcrdMets seems unnecessary, since the OcrdMets is not a contextmanager (i.e. it is not used as with OcrdMets), so the __exit__ method is never called. Also the signature is wrong.

I guess the reasoning for the method is a C++ background where you declare destructors. In Python, garbage collector should take care of this.

@kba kba requested a review from MehmedGIT November 13, 2023 13:35
@kba kba merged commit 23b106e into master Nov 13, 2023
@kba kba deleted the ocrd-mets-remove-exit branch November 17, 2023 13:11
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.

3 participants