misc: cleanup

This commit is contained in:
Dylan Araps 2018-04-02 16:16:22 +10:00
parent 041044ed05
commit 311fbf2b6c

View File

@ -31,7 +31,7 @@ def terminal_sexy_to_wal(data):
return data
def parse_theme(theme_file):
def parse(theme_file):
"""Parse the theme file."""
data = util.read_file_json(theme_file)
@ -70,8 +70,8 @@ def file(input_file):
# Parse the theme file.
if os.path.isfile(theme_file):
return parse_theme(theme_file)
return parse(theme_file)
else:
logging.error("No colorscheme file found, exiting...")
logging.error("No colorscheme file found.")
sys.exit(1)