diff options
| author | Egor Tensin <egor@tensin.name> | 2026-05-23 06:06:48 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-05-23 06:06:48 +0200 |
| commit | 7a9c2499a39f3fe4b28bf194079962805e63dd76 (patch) | |
| tree | 39eff0e893f1eaa4c7a8a66a4dd0481c9e228afd /src/app.py | |
| parent | workflows/ci: run the Black linter (diff) | |
| download | linux-status-7a9c2499a39f3fe4b28bf194079962805e63dd76.tar.gz linux-status-7a9c2499a39f3fe4b28bf194079962805e63dd76.zip | |
reformat files in accordance with Black
Diffstat (limited to 'src/app.py')
| -rwxr-xr-x | src/app.py | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -116,7 +116,14 @@ class Response: def run_do(*args, **kwargs): - output = subprocess.run(args, stdin=DEVNULL, stdout=PIPE, stderr=STDOUT, universal_newlines=True, **kwargs) + output = subprocess.run( + args, + stdin=DEVNULL, + stdout=PIPE, + stderr=STDOUT, + universal_newlines=True, + **kwargs, + ) # Include the output in the exception's message: try: output.check_returncode() @@ -330,10 +337,7 @@ class ThermalInfo(Task): @staticmethod def _collect_dirs(): root = ThermalInfo.ROOT - dirs = [ - dir for dir in os.listdir(root) - if re.match(r'^thermal_zone\d+$', dir) - ] + dirs = [dir for dir in os.listdir(root) if re.match(r'^thermal_zone\d+$', dir)] dirs = sorted(dirs) dirs = [os.path.join(root, dir) for dir in dirs] return dirs |
