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

Close file-like objects to address ResourceWarning. #1183

Merged
merged 2 commits into from
Aug 23, 2022
Merged

Close file-like objects to address ResourceWarning. #1183

merged 2 commits into from
Aug 23, 2022

Conversation

shawnbrown
Copy link
Contributor

This is needed because ArgumentParser is opening its FileType arguments
but not closing them. When the program terminates, the default warnings
filter was emitting a "ResourceWarning: unclosed file" message.

See issue #1182.

Git was showing "No newline at end of file" warning.
This is needed because ArgumentParser is opening its FileType arguments
but not closing them. When the program terminates, the default warnings
filter was emitting a "ResourceWarning: unclosed file" message.

See issue #1182.
@erezsh erezsh merged commit ed53bfd into lark-parser:master Aug 23, 2022
@erezsh
Copy link
Member

erezsh commented Aug 23, 2022

Thanks!

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