Skip to content

Ensure files are always closed after use#5346

Draft
aakallam wants to merge 1 commit into
masterfrom
push-rktqpxtnxyxo
Draft

Ensure files are always closed after use#5346
aakallam wants to merge 1 commit into
masterfrom
push-rktqpxtnxyxo

Conversation

@aakallam

@aakallam aakallam commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

This refactors a bunch of file I/O to use with statements to ensure that the file handles are always closed. Closing file handles is especially important on Windows because only one file object can point at a file at one time.

To make a few complex file opening cases work, this PR adds a couple new path variables to simplify the refactoring but otherwise does not introduce or change any logic.

@aakallam aakallam force-pushed the push-rktqpxtnxyxo branch 4 times, most recently from 57b4017 to dd606d1 Compare July 1, 2026 20:14
@aakallam aakallam force-pushed the push-rktqpxtnxyxo branch from dd606d1 to 79d5a0e Compare July 1, 2026 20:16
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