From 7a9c2499a39f3fe4b28bf194079962805e63dd76 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 23 May 2026 06:06:48 +0200 Subject: reformat files in accordance with Black --- src/app.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/app.py') diff --git a/src/app.py b/src/app.py index 8dd3b86..6d838e0 100755 --- a/src/app.py +++ b/src/app.py @@ -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 -- cgit v1.3