Skip to content

Fix ResourceWarning about unclose file in _get_traceback_files#7

Open
mondwan wants to merge 1 commit intofinereli:masterfrom
mondwan:patch-1
Open

Fix ResourceWarning about unclose file in _get_traceback_files#7
mondwan wants to merge 1 commit intofinereli:masterfrom
mondwan:patch-1

Conversation

@mondwan
Copy link
Copy Markdown

@mondwan mondwan commented Jul 23, 2020

After reading the contents of file, we close it. with statement is handy in this situation

After reading the contents of file, we close it. `with` statement is handy in this situation
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.

2 participants