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

(PTC-W0010) File opened without the with statement #15

Open
mmorales99 opened this issue Mar 8, 2021 · 0 comments
Open

(PTC-W0010) File opened without the with statement #15

mmorales99 opened this issue Mar 8, 2021 · 0 comments

Comments

@mmorales99
Copy link
Owner

Description

Opening a file using with statement is preferred as function open implements the context manager protocol that releases the resource when it is outside of the with block. Not doing so requires you to manually release the resource.

Occurrences

There are 8 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/mmorales99/isntabot/issue/PTC-W0010/occurrences/

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

No branches or pull requests

1 participant