From: Wing Date: Fri, 16 May 2014 19:52:50 +0000 (+0800) Subject: Update environment.py X-Git-Tag: 2.8~93^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fe850dfd33121b79549b6747a5bb0950ec894f1;p=thirdparty%2Fjinja.git Update environment.py --- diff --git a/jinja2/environment.py b/jinja2/environment.py index 468ccc0a..5055ed31 100644 --- a/jinja2/environment.py +++ b/jinja2/environment.py @@ -757,7 +757,7 @@ class Environment(object): def _load_template(self, name, globals): if self.loader is None: raise TypeError('no loader for this environment specified') - # use abs path for cache + # use abs path for cache key cache_key = self.loader.get_source(self, name)[1] if self.cache is not None: template = self.cache.get(cache_key)