]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man/check-os-release-simple: apply "ruff format"
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 19 Feb 2026 16:49:47 +0000 (01:49 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 17 May 2026 17:44:46 +0000 (02:44 +0900)
man/check-os-release-simple.py

index ce73c77b14a36b46b6c9567d676ae4788ae87729..8c6498279023711237ab41a5055707fd63de135e 100755 (executable)
@@ -2,11 +2,11 @@
 # SPDX-License-Identifier: MIT-0
 
 import platform
+
 os_release = platform.freedesktop_os_release()
 
 pretty_name = os_release.get('PRETTY_NAME', 'Linux')
 print(f'Running on {pretty_name!r}')
 
-if 'fedora' in [os_release.get('ID', 'linux'),
-                *os_release.get('ID_LIKE', '').split()]:
+if 'fedora' in [os_release.get('ID', 'linux'), *os_release.get('ID_LIKE', '').split()]:
     print('Looks like Fedora!')