Commit a240f354 authored by Julien Muchembled's avatar Julien Muchembled

jinja2: remove useless use of local variable

parent 5dee275f
......@@ -213,8 +213,7 @@ class Recipe(object):
env = self.env
if template.startswith('inline:'):
source = template[7:].lstrip('\r\n')
template = '<inline>'
compiled_source = env.compile(source, filename=template)
compiled_source = env.compile(source, filename='<inline>')
else:
try:
compiled_source = compiled_source_cache[template]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment