Midnight1938/Library-Management-System

(PTC-W0010) File opened without the `with` statement

Closed this issue · 0 comments

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 4 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/Midnight1938/Library-Management-System/issue/PTC-W0010/occurrences/