diff options
author | Britney Fransen <brfransen@gmail.com> | 2014-04-29 23:14:28 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2014-04-29 23:14:28 (GMT) |
commit | 88c34a9f842d5f7424c8fc9ab204d4cbc62e01d7 (patch) | |
tree | b8e859b486beea58a0a270b3e19a2af6efda1f16 /abs/core/python_modules/python-jinja/Fix-PrefixLoader-does-not-pass-globals-to-load.patch | |
parent | ae65f9323dd037b478a7116a53067f2e5c68a86a (diff) | |
download | linhes_pkgbuild-88c34a9f842d5f7424c8fc9ab204d4cbc62e01d7.zip linhes_pkgbuild-88c34a9f842d5f7424c8fc9ab204d4cbc62e01d7.tar.gz linhes_pkgbuild-88c34a9f842d5f7424c8fc9ab204d4cbc62e01d7.tar.bz2 |
python-jinja: initial inclusion
Diffstat (limited to 'abs/core/python_modules/python-jinja/Fix-PrefixLoader-does-not-pass-globals-to-load.patch')
-rw-r--r-- | abs/core/python_modules/python-jinja/Fix-PrefixLoader-does-not-pass-globals-to-load.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-jinja/Fix-PrefixLoader-does-not-pass-globals-to-load.patch b/abs/core/python_modules/python-jinja/Fix-PrefixLoader-does-not-pass-globals-to-load.patch new file mode 100644 index 0000000..8100449 --- /dev/null +++ b/abs/core/python_modules/python-jinja/Fix-PrefixLoader-does-not-pass-globals-to-load.patch @@ -0,0 +1,26 @@ +From 478983594423dcdb85e26ea7a02b8d1d72215db6 Mon Sep 17 00:00:00 2001 +From: Morris Jobke <morris.jobke@gmail.com> +Date: Mon, 27 May 2013 00:54:52 +0300 +Subject: [PATCH] Fix "PrefixLoader does not pass globals to load" + +Fix mitsuhiko/jinja2#225 +--- + jinja2/loaders.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/jinja2/loaders.py b/jinja2/loaders.py +index a9a2625..cc9c683 100644 +--- a/jinja2/loaders.py ++++ b/jinja2/loaders.py +@@ -349,7 +349,7 @@ def get_source(self, environment, template): + def load(self, environment, name, globals=None): + loader, local_name = self.get_loader(name) + try: +- return loader.load(environment, local_name) ++ return loader.load(environment, local_name, globals) + except TemplateNotFound: + # re-raise the exception with the correct fileame here. + # (the one that includes the prefix) +-- +1.8.1.6 + |