From 9e38b8fd58d597eec1d19d2fd8967146281bab1c Mon Sep 17 00:00:00 2001 From: David Perez-Suarez Date: Sat, 24 Oct 2020 18:29:37 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9E=B0=20removes=20unnecessary=20loops?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bpytop.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bpytop.py b/bpytop.py index 6677d33..7b4a82a 100755 --- a/bpytop.py +++ b/bpytop.py @@ -47,9 +47,8 @@ elif "darwin" in sys.platform: SYSTEM = "MacOS" else: SYSTEM = "Other" if errors: - print ("ERROR!") - for error in errors: - print(error) + print("ERROR!") + print("\n".join(errors)) if SYSTEM == "Other": print("\nUnsupported platform!\n") else: @@ -1177,8 +1176,7 @@ class Theme: else: c = Color.fg(*rgb["start"]) - for _ in range(101): - self.gradient[name] += [c] + self.gradient[name] += [c] * 101 #* Set terminal colors Term.fg = self.main_fg Term.bg = self.main_bg if CONFIG.theme_background else "\033[49m"