From a4dafa81753b248ba63b5e7a69e96838ed7ff360 Mon Sep 17 00:00:00 2001 From: titoko Date: Wed, 19 Dec 2012 18:04:35 +0100 Subject: [PATCH] No need to type of the variable. str(value) anyways --- yunohost.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/yunohost.py b/yunohost.py index 4ebc6ade..27eea0b8 100644 --- a/yunohost.py +++ b/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