summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Leitner <lorenz.leitner@student.tugraz.at>2019-10-01 11:18:37 +0200
committerLorenz Leitner <lorenz.leitner@student.tugraz.at>2019-10-01 11:18:37 +0200
commit0c32f4e9a920938120297a397c33ca3c655f697f (patch)
treede467cf5b0da6d28178eb44a86265b608b667671
parentfe700cb77aab6df55de05704082576b19d7652b5 (diff)
Fix pylint
-rw-r--r--pywal/theme.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/pywal/theme.py b/pywal/theme.py
index 04e4b2b..c053f18 100644
--- a/pywal/theme.py
+++ b/pywal/theme.py
@@ -19,21 +19,22 @@ def list_out():
user_themes = [theme.name.replace(".json", "")
for theme in list_themes_user()]
- last_used_theme = util.read_file(os.path.join(CACHE_DIR,
- "last_used_theme"))[0].replace(".json", "")
+
+ last_used_theme = util.read_file(os.path.join(
+ CACHE_DIR, "last_used_theme"))[0].replace(".json", "")
if user_themes:
print("\033[1;32mUser Themes\033[0m:")
print(" -", "\n - ".join(t + " (last used)" if t == last_used_theme else t
- for t in sorted(user_themes)))
+ for t in sorted(user_themes)))
print("\033[1;32mDark Themes\033[0m:")
print(" -", "\n - ".join(t + " (last used)" if t == last_used_theme else t
- for t in sorted(dark_themes)))
+ for t in sorted(dark_themes)))
print("\033[1;32mLight Themes\033[0m:")
print(" -", "\n - ".join(t + " (last used)" if t == last_used_theme else t
- for t in sorted(ligh_themes)))
+ for t in sorted(ligh_themes)))
print("\033[1;32mExtra\033[0m:")
print(" - random (select a random dark theme)")
@@ -122,8 +123,8 @@ def file(input_file, light=False):
if os.path.isfile(theme_file):
logging.info("Set theme to \033[1;37m%s\033[0m.",
os.path.basename(theme_file))
- util.save_file(os.path.basename(theme_file), os.path.join(CACHE_DIR,
- "last_used_theme"))
+ util.save_file(os.path.basename(theme_file),
+ os.path.join(CACHE_DIR, "last_used_theme"))
return parse(theme_file)
logging.error("No %s colorscheme file found.", bri)