summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python-jinja/Fix-PrefixLoader-does-not-pass-globals-to-load.patch
diff options
context:
space:
mode:
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.patch26
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
+