-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use context managers whenever to manage resources (#185)
* umu_run: refactor ThreadPoolExecutor usage as a context manager * umu_util: add xdisplay to generate Display * umu_run: refactor Display usage as a context manager - Ensures that in the process of configuring the gamescope windows or creating the subprocess, system resources will be released * umu_util: add https_connection to generate HTTPSConnection * umu_util: delete get_osrelease_id * umu_run: delete get_osrelease_id * umu_runtime: refactor HTTPSConnection usage as a context manager * umu_runtime: refactor FileLock usage as a context manager * umu_run: add comments * umu_test: delete libc test - libc.so is fundamental, so do not even test for this. Users are going to run into problems if it somehow couldn't be found. * umu_test: update tests
- Loading branch information
Showing
4 changed files
with
217 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.