]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
analyze-dump-sort: apply "ruff format"
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 19 Feb 2026 17:03:44 +0000 (02:03 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 17 May 2026 17:44:46 +0000 (02:44 +0900)
tools/analyze-dump-sort.py

index a464a14bd1229e34e2f7acac9141a469de28154e..da6094f9961e7d0404c93961da61b1c20982cd77 100755 (executable)
@@ -58,6 +58,7 @@ def sort_dump(sourcefile, destfile=None):
     destfile.flush()
     return destfile
 
+
 def parse_args():
     p = argparse.ArgumentParser(description=__doc__)
     p.add_argument('one')
@@ -65,6 +66,7 @@ def parse_args():
     p.add_argument('--user', action='store_true')
     return p.parse_args()
 
+
 if __name__ == '__main__':
     opts = parse_args()
 
@@ -73,8 +75,7 @@ if __name__ == '__main__':
         two = sort_dump(open(opts.two))
     else:
         user = ['--user'] if opts.user else []
-        two = subprocess.run(['systemd-analyze', 'dump', *user],
-                             capture_output=True, text=True, check=True)
+        two = subprocess.run(['systemd-analyze', 'dump', *user], capture_output=True, text=True, check=True)
         two = sort_dump(two.stdout.splitlines())
     with subprocess.Popen(['diff', '-U10', one.name, two.name], stdout=subprocess.PIPE) as diff:
         subprocess.Popen(['less'], stdin=diff.stdout)