removes unnecessary loops

pull/162/head
David Perez-Suarez 2020-10-24 18:29:37 +01:00
parent 11eb53dd59
commit 9e38b8fd58
1 changed files with 3 additions and 5 deletions

View File

@ -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"