(PTC-W0010) File opened without the `with` statement
ksdkamesh99 opened this issue · 1 comments
ksdkamesh99 commented
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 commented
Could You assign it to me @ksr-qubole @mrwalker