Skip to content

Fix ResourceWarning: unclosed file#681

Merged
yanglbme merged 1 commit intoTheAlgorithms:masterfrom
BoboTiG:fix-resource-leaks
Jan 8, 2019
Merged

Fix ResourceWarning: unclosed file#681
yanglbme merged 1 commit intoTheAlgorithms:masterfrom
BoboTiG:fix-resource-leaks

Conversation

@BoboTiG
Copy link
Contributor

@BoboTiG BoboTiG commented Jan 5, 2019

Use the with context manager to prevent resource leaks.

Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
@yanglbme yanglbme merged commit 2d70e9f into TheAlgorithms:master Jan 8, 2019
@BoboTiG BoboTiG deleted the fix-resource-leaks branch January 8, 2019 13:48
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