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 #334

Open
ksdkamesh99 opened this issue Oct 19, 2020 · 1 comment
Open

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

ksdkamesh99 opened this issue Oct 19, 2020 · 1 comment

Comments

@ksdkamesh99
Copy link

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/qubole/qds-sdk-py/issue/PTC-W0010/occurrences/

@ksdkamesh99
Copy link
Author

Could You assign it to me @ksr-qubole @mrwalker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants