Skip to content

Conversation

@mahdirahimi1999
Copy link
Contributor

Description

This commit updates the read function to use a context manager when opening the file, ensuring that the file is properly closed after it has been read. This improves the code's readability and helps to prevent potential resource leaks.

@mahdirahimi1999
Copy link
Contributor Author

Please check this PR. @auvipy

@auvipy auvipy self-requested a review May 1, 2023 10:16
@mahdirahimi1999
Copy link
Contributor Author

Please check this PR. @auvipy

@auvipy auvipy merged commit d14eb75 into encode:master May 2, 2023
@mahdirahimi1999 mahdirahimi1999 deleted the feature/improve-file-handling branch November 4, 2023 16:15
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