Fix: black error on pre-commit

This commit is contained in:
L0m1g 2025-05-03 16:19:45 +02:00
parent 63fc1ffd0e
commit 14a8f2b477
2 changed files with 5 additions and 2 deletions

View file

@ -41,7 +41,9 @@ def run_as_user(username):
if pid > 0:
# Parent : attendre le child, ne pas exit, juste return proprement
_, status = os.waitpid(pid, 0)
return status >> 8 # récupère le code retour du fils (comme exit code)
return (
status >> 8
) # récupère le code retour du fils (comme exit code)
# Child
pw_record = pwd.getpwnam(username)
@ -60,4 +62,4 @@ def run_as_user(username):
return wrapper
return decorator
return decorator