commit | 9fe850dfd33121b79549b6747a5bb0950ec894f1 | [log] [tgz] |
---|---|---|
author | Wing <SteelyWing@users.noreply.github.com> | Sat May 17 03:52:50 2014 +0800 |
committer | Wing <SteelyWing@users.noreply.github.com> | Sat May 17 03:52:50 2014 +0800 |
tree | 159ec12fc9cb201685d5a201e5f6541cbae4844f | |
parent | 115aa96261b29ac446abdfb74eb82e45998e3545 [diff] |
Update environment.py
diff --git a/jinja2/environment.py b/jinja2/environment.py index 468ccc0..5055ed3 100644 --- a/jinja2/environment.py +++ b/jinja2/environment.py
@@ -757,7 +757,7 @@ 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)