General: Fix comments.

This commit is contained in:
Dylan Araps 2017-06-23 14:35:20 +10:00
parent f82677c960
commit 1359878f7e

8
wal
View File

@ -1,7 +1,7 @@
#!/usr/bin/env python
"""
wal - Generate and change colorschemes on the fly.
Created by Dylan Araps
Created by Dylan Araps.
"""
import argparse
import os
@ -79,7 +79,7 @@ def get_args():
def process_args(args):
"""Process args"""
"""Process args."""
# If no args were passed.
if not len(sys.argv) > 1:
print("error: wal needs to be given arguments to run.\n"
@ -196,7 +196,7 @@ def gen_colors(img):
"color palette, trying a larger palette size",
COLOR_COUNT + index)
# Remove the first element, which isn"t a color.
# Remove the first element, which isn't a color.
del raw_colors[0]
# Create a list of hex colors.
@ -293,7 +293,7 @@ def set_color(index, color):
def set_grey(colors):
"""Set a grey color based on brightness of color0"""
"""Set a grey color based on brightness of color0."""
return {
0: "#666666",
1: "#666666",