From: Yu Watanabe Date: Thu, 19 Feb 2026 17:11:31 +0000 (+0900) Subject: meson-extract-unit-files: apply "ruff format" X-Git-Tag: v261-rc1~126^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fbb5e0ff1f533a4128a6a43346aa118bcaab696;p=thirdparty%2Fsystemd.git meson-extract-unit-files: apply "ruff format" --- diff --git a/tools/meson-extract-unit-files.py b/tools/meson-extract-unit-files.py index f2b4fa30e71..df4c5593469 100755 --- a/tools/meson-extract-unit-files.py +++ b/tools/meson-extract-unit-files.py @@ -6,15 +6,20 @@ import re import subprocess import sys + def main(): build_dir = sys.argv[1] - out = subprocess.run(["meson", "introspect", "--installed", build_dir], - stdout=subprocess.PIPE, check=True) + out = subprocess.run( + ['meson', 'introspect', '--installed', build_dir], + stdout=subprocess.PIPE, + check=True, + ) files = json.loads(out.stdout) for file in sorted(files.values()): - if re.search("^/usr/lib/systemd/(system|user)/", file) and not file.endswith(".conf"): + if re.search('^/usr/lib/systemd/(system|user)/', file) and not file.endswith('.conf'): print(file) -if __name__ == "__main__": + +if __name__ == '__main__': main()