mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
No need to type of the variable. str(value) anyways
This commit is contained in:
parent
36dab1cd02
commit
a4dafa8175
1 changed files with 3 additions and 8 deletions
11
yunohost.py
11
yunohost.py
|
@ -45,15 +45,10 @@ def pretty_print_dict(d, depth=0):
|
|||
elif isinstance(v, list):
|
||||
print((" ") * depth + ("%s: " % k))
|
||||
for value in v:
|
||||
if isinstance(value,str):
|
||||
print((" ") * (depth+1) + "- " + value)
|
||||
else:
|
||||
print((" ") * (depth+1) + "- " +str(value))
|
||||
print((" ") * (depth+1) + "- " +str(value))
|
||||
else:
|
||||
if isinstance(v,str):
|
||||
print((" ") * depth + "%s: %s" % (k, v))
|
||||
else:
|
||||
print((" ") * depth + "%s: %s" % (k, str(v)))
|
||||
print((" ") * depth + "%s: %s" % (k, str(v)))
|
||||
|
||||
def win_msg(astr):
|
||||
"""
|
||||
Display a success message if isatty
|
||||
|
|
Loading…
Add table
Reference in a new issue