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

wxGUI: Use context managers for file operations in t.rast.* #5172

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arohanajit
Copy link
Contributor

Updated code to use context managers instead of SIM115

@github-actions github-actions bot added temporal Related to temporal data processing Python Related code is in Python module labels Feb 21, 2025
@@ -148,13 +148,10 @@ def main():
if rows:
# Create the r.colors input file
filename = gs.tempfile(True)
file = open(filename, "w")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about doing this similarly to #5105?

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

Successfully merging this pull request may close these issues.

2 participants