summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2018-03-31 17:05:41 +1100
committerDylan Araps <dylan.araps@gmail.com>2018-03-31 17:05:41 +1100
commit9efc64f170fa608fd9e0d91b3f13e033af12919c (patch)
treec1cb598fa96830dd05095b42beaaf2e83812f8c4
parent44d8402e6e9be94fc615c2df1f66417acecff9d5 (diff)
pylint: fixes
-rw-r--r--pywal/__main__.py2
-rw-r--r--pywal/colors.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pywal/__main__.py b/pywal/__main__.py
index 8a7d760..05eea99 100644
--- a/pywal/__main__.py
+++ b/pywal/__main__.py
@@ -128,7 +128,7 @@ def process_args(args):
if args.i:
image_file = image.get(args.i)
- colors_plain = colors.gen(image_file, args.l, args.backend)
+ colors_plain = colors.get(image_file, args.l, args.backend)
if args.f:
colors_plain = colors.file(args.f)
diff --git a/pywal/colors.py b/pywal/colors.py
index 164f34a..20110da 100644
--- a/pywal/colors.py
+++ b/pywal/colors.py
@@ -53,7 +53,7 @@ def generic_adjust(colors, light):
return colors
-def gen(img, light=False, backend="wal", cache_dir=CACHE_DIR):
+def get(img, light=False, backend="wal", cache_dir=CACHE_DIR):
"""Generate a palette."""
# home_dylan_img_jpg_backend_1.2.2.json
color_type = "light" if light else "dark"