From 74f02e8a68ee47f48327d8ebd5de82695369303f Mon Sep 17 00:00:00 2001 From: Alexander Graul Date: Wed, 27 Sep 2023 16:22:53 +0200 Subject: [PATCH] blacken daemons/masterapi.py and its test_auto_key --- tests/pytests/unit/daemons/masterapi/test_auto_key.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/pytests/unit/daemons/masterapi/test_auto_key.py b/tests/pytests/unit/daemons/masterapi/test_auto_key.py index ddcfc17e4a7..54c3f22d2a9 100644 --- a/tests/pytests/unit/daemons/masterapi/test_auto_key.py +++ b/tests/pytests/unit/daemons/masterapi/test_auto_key.py @@ -17,11 +17,11 @@ def gen_permissions(owner="", group="", others=""): """ ret = 0 for c in owner: - ret |= getattr(stat, "S_I{}USR".format(c.upper()), 0) + ret |= getattr(stat, f"S_I{c.upper()}USR", 0) for c in group: - ret |= getattr(stat, "S_I{}GRP".format(c.upper()), 0) + ret |= getattr(stat, f"S_I{c.upper()}GRP", 0) for c in others: - ret |= getattr(stat, "S_I{}OTH".format(c.upper()), 0) + ret |= getattr(stat, f"S_I{c.upper()}OTH", 0) return ret