fix lint warning: line length

This commit is contained in:
Yury Ignatev 2020-11-04 16:17:44 +07:00
parent 60810a5225
commit 9a2aaad379
No known key found for this signature in database
GPG Key ID: 32C88B36FBCA9635

View File

@ -14,7 +14,8 @@ def template_jinja(colors, input_file, output_file=None):
"""Read template file, process jinja2 template and """Read template file, process jinja2 template and
save the file elsewhere.""" save the file elsewhere."""
data = util.read_file_raw(input_file) data = util.read_file_raw(input_file)
util.save_file(Template("".join(data)).render(**colors), output_file.replace(".jinja", "")) tpl = Template("".join(data))
util.save_file(tpl.render(**colors), output_file.replace(".jinja", ""))
def template(colors, input_file, output_file=None): def template(colors, input_file, output_file=None):