mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
make pathfinding readable
This commit is contained in:
parent
9f593e6c51
commit
51b9904d2e
1 changed files with 3 additions and 1 deletions
|
@ -60,7 +60,9 @@ def pretty_print_dict(d, depth=0):
|
|||
def lvl(*args):
|
||||
dic = None
|
||||
for arg in args:
|
||||
if dic is None or arg in dic:
|
||||
if dic is None:
|
||||
dic = arg
|
||||
elif arg in dic:
|
||||
dic = dic[arg]
|
||||
else:
|
||||
return False
|
||||
|
|
Loading…
Add table
Reference in a new issue