Fix pylint

This commit is contained in:
Lorenz Leitner 2019-10-01 11:18:37 +02:00
parent fe700cb77a
commit 0c32f4e9a9

View File

@ -19,8 +19,9 @@ 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:")
@ -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)