]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Fix new linter warning
authorLuca Boccassi <luca.boccassi@gmail.com>
Sun, 27 Jul 2025 18:33:08 +0000 (19:33 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 27 Jul 2025 18:33:20 +0000 (19:33 +0100)
mkosi/tree.py

index f90ed8ca9f6ce351d2134390554aa5fe5a343d28..2fe5802ebf6ecddd039aee901e4c0492bfea7a5a 100644 (file)
@@ -88,7 +88,9 @@ def maybe_make_nocow(path: Path) -> None:
 
 
 def tree_has_selinux_xattr(path: Path) -> bool:
-    return any("security.selinux" in os.listxattr(p, follow_symlinks=False) for p in (path, *path.rglob("*")))
+    return any(
+        "security.selinux" in os.listxattr(p, follow_symlinks=False) for p in (path, *path.rglob("*"))
+    )
 
 
 def copy_tree(