blacken daemons/masterapi.py and its test_auto_key

This commit is contained in:
Alexander Graul 2023-09-27 16:22:53 +02:00 committed by Megan Wilhite
parent 31146eae69
commit 74f02e8a68

View file

@ -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