Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python: Use context manager for subprocesses and opening files #4908

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

echoix
Copy link
Member

@echoix echoix commented Jan 3, 2025

Similar to #4905, but for the python/grass folder.

Once selecting the wanted changes from the refactoring Pyrefact made, ruff helped to further simplify as the supported patterns became obvious.

@echoix echoix requested a review from ninsbl January 3, 2025 00:54
@github-actions github-actions bot added Python Related code is in Python libraries labels Jan 3, 2025
python/grass/imaging/images2avi.py Fixed Show resolved Hide resolved
petrasovaa
petrasovaa previously approved these changes Jan 3, 2025
@echoix
Copy link
Member Author

echoix commented Jan 3, 2025

I have 3 other branches to write the PRs for the same related changes (same tool, but completely different fixes)

@echoix
Copy link
Member Author

echoix commented Jan 3, 2025

@tmszi Do you mind re-approving the previously approved PR, that addressed the requested additionnal change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libraries Python Related code is in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants