summaryrefslogtreecommitdiff
path: root/pywal/export_colors.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-06-30 09:28:23 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-06-30 09:28:23 +1000
commit6ca3fa2763c15feccf7902dbb9dd95a3e6ddb4c3 (patch)
tree20c51ab8f085b822fcc304407a24fe7d91e5c823 /pywal/export_colors.py
parentd865a5fd3cb7bc93091564abecc8b2c1aca35d04 (diff)
tests: Fix linting and tests.
Diffstat (limited to 'pywal/export_colors.py')
-rwxr-xr-xpywal/export_colors.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/pywal/export_colors.py b/pywal/export_colors.py
index 036b661..64dc2a7 100755
--- a/pywal/export_colors.py
+++ b/pywal/export_colors.py
@@ -31,13 +31,14 @@ def export_all_templates(colors, template_dir=None, output_dir=CACHE_DIR):
"""Export all template files."""
# Add the template dir to module path.
- template_dir = template_dir or os.path.join(os.path.dirname(__file__), "templates")
+ template_dir = template_dir or \
+ os.path.join(os.path.dirname(__file__), "templates")
# Merge all colors (specials and normals) into one dict so we can access
# their values simpler.
- all_colors = dict()
- for v in colors.values():
- all_colors.update(v)
+ all_colors = {}
+ # pylint: disable=W0106
+ [all_colors.update(value) for value in colors.values()]
# Turn all those colors into util.Color instances for accessing the
# .hex and .rgb formats