Merge pull request #328 from YunoHost/actions/black

Format Python code with Black
This commit is contained in:
Alexandre Aubin 2023-01-05 19:18:38 +01:00 committed by GitHub
commit 2195ed6f90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -434,7 +434,13 @@ class ActionsMapParser(BaseActionsMapParser):
if len(tid) == 3: if len(tid) == 3:
_p = self._subparsers.choices[tid[1]]._actions[1].choices[tid[2]] _p = self._subparsers.choices[tid[1]]._actions[1].choices[tid[2]]
elif len(tid) == 4: elif len(tid) == 4:
_p = self._subparsers.choices[tid[1]]._actions[1].choices[tid[2]]._actions[1].choices[tid[3]] _p = (
self._subparsers.choices[tid[1]]
._actions[1]
.choices[tid[2]]
._actions[1]
.choices[tid[3]]
)
return getattr(_p, "want_to_take_lock", True) return getattr(_p, "want_to_take_lock", True)