Skip to content

Conversation

@yieldthought
Copy link
Contributor

…destructor

The existing code often causes "LookupError: unknown encoding: ascii" when open() called in a destructor. Saving open in self.open is not enough to avoid this. Instead, we can avoid reopening /dev/null every time by doing it once when the module is loaded.

…destructor

The existing code often causes "LookupError: unknown encoding: ascii" when open() called in a destructor. Saving open in self.open is not enough to avoid this. Instead, we can avoid reopening /dev/null every time by doing it once when the module is loaded.
@FGRibreau
Copy link

Thanks a lot! I had the same issue :)

@abetlen
Copy link
Owner

abetlen commented Jan 15, 2024

@yieldthought thank you for the contribution!

@abetlen abetlen merged commit 7eff42c into abetlen:main Jan 15, 2024
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