Skip to content

Commit

Permalink
blacken daemons/masterapi.py and its test_auto_key
Browse files Browse the repository at this point in the history
  • Loading branch information
agraul authored and Megan Wilhite committed Oct 9, 2023
1 parent 31146ea commit 74f02e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/pytests/unit/daemons/masterapi/test_auto_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 74f02e8

Please sign in to comment.