From 090680f3d5cf11db7f8d4dc4f73bfdc23d9994c0 Mon Sep 17 00:00:00 2001 From: Wing Date: Sat, 17 May 2014 14:30:34 +0800 Subject: [PATCH] better assignment --- jinja2/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jinja2/environment.py b/jinja2/environment.py index afef6b8e..f56bd456 100644 --- a/jinja2/environment.py +++ b/jinja2/environment.py @@ -759,7 +759,7 @@ class Environment(object): raise TypeError('no loader for this environment specified') try: # use abs path for cache key - _, cache_key, _ = self.loader.get_source(self, name) + cache_key = self.loader.get_source(self, name)[1] except RuntimeError: # if loader does not implement get_source() cache_key = None -- 2.47.2