Skip to content

fix(resource): use context manager for file handles#515

Open
dumko2001 wants to merge 1 commit intovivekchand:mainfrom
dumko2001:fix-009
Open

fix(resource): use context manager for file handles#515
dumko2001 wants to merge 1 commit intovivekchand:mainfrom
dumko2001:fix-009

Conversation

@dumko2001
Copy link
Copy Markdown
Contributor

Summary

Use context managers for file handles to prevent leaks.

Changes

  • Wrap file open() calls with context managers (with statement)
  • Ensures files are properly closed even on exceptions

Testing

Verified file handles are properly closed

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.

1 participant