-
-
Notifications
You must be signed in to change notification settings - Fork 326
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
gui: Use context manager for opening files and temporary files #4917
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
14 out of 29 viewed so far. See my comment.
with open(os.devnull, "w+") as nuldev: | ||
grass.call(["make"], stderr=nuldev) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This whole thing is indetend just because subprocess.DEVNULL
. Did you consider adding it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, what do you mean by "adding it"?
Analogous to #4908, but for gui/.
There will be conflicts for either this PR or #4916, the first one to be merge will be good. I had to manually untangle these two to make the branch.