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): ...@@ -213,8 +213,7 @@ class Recipe(object):
env = self.env env = self.env
if template.startswith('inline:'): if template.startswith('inline:'):
source = template[7:].lstrip('\r\n') source = template[7:].lstrip('\r\n')
template = '<inline>' compiled_source = env.compile(source, filename='<inline>')
compiled_source = env.compile(source, filename=template)
else: else:
try: try:
compiled_source = compiled_source_cache[template] 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