Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 3647d33

Browse files
authored
Merge pull request #546 from ryuta69/fix_longline_for_flake8
[Test] Fix longline for flake8
2 parents 807286c + 0ac6ef2 commit 3647d33

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pywal/export.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,18 @@ def template(colors, input_file, output_file=None):
5858
# If the color was changed, replace with a unique identifier.
5959
if new_color is not colors[cname]:
6060
new_color = str(new_color)
61-
new_color_clean = new_color.replace('[', '_').replace(']', '_').replace('.', '_')
61+
new_color_clean = (new_color.replace('[', '_')
62+
.replace(']', '_')
63+
.replace('.', '_'))
6264
template_data[i] = l.replace(replace_str,
6365
"color" + new_color_clean)
6466
colors["color" + new_color_clean] = new_color
6567
try:
6668
template_data = "".join(template_data).format(**colors)
6769
except (ValueError, KeyError, AttributeError) as exc:
68-
logging.error("Syntax error in template file '%s': %r.", input_file, exc)
70+
logging.error(
71+
"Syntax error in template file '%s': %r.",
72+
input_file, exc)
6973
return
7074
util.save_file(template_data, output_file)
7175

0 commit comments

Comments
 (0)