[python-jinja2] Add patch for issue #259.

Thomas Moschny thm at fedoraproject.org
Fri Aug 16 18:21:54 UTC 2013


commit 78ead1913c3caebcc30b89b84652e6a2105257c6
Author: Thomas Moschny <thm at fedoraproject.org>
Date:   Fri Aug 16 20:15:56 2013 +0200

    Add patch for issue #259.

 99d0f3165ace0befd9eafd661be6e0c23d5f9ba5.patch |   25 ++++++++++++++++++++++++
 python-jinja2.spec                             |    3 ++
 2 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/99d0f3165ace0befd9eafd661be6e0c23d5f9ba5.patch b/99d0f3165ace0befd9eafd661be6e0c23d5f9ba5.patch
new file mode 100644
index 0000000..e95d938
--- /dev/null
+++ b/99d0f3165ace0befd9eafd661be6e0c23d5f9ba5.patch
@@ -0,0 +1,25 @@
+From 99d0f3165ace0befd9eafd661be6e0c23d5f9ba5 Mon Sep 17 00:00:00 2001
+From: Gabi Davar <grizzly.nyo at gmail.com>
+Date: Fri, 16 Aug 2013 16:18:35 +0300
+Subject: [PATCH] align jinjaext with the rest of the computability cleanups
+
+---
+ docs/jinjaext.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/docs/jinjaext.py b/docs/jinjaext.py
+index 8395a55..3c217f8 100644
+--- a/docs/jinjaext.py
++++ b/docs/jinjaext.py
+@@ -23,7 +23,7 @@
+ from pygments.token import Keyword, Name, Comment, String, Error, \
+      Number, Operator, Generic
+ from jinja2 import Environment, FileSystemLoader
+-from jinja2.utils import next
++from jinja2._compat import next
+ 
+ 
+ def parse_rst(state, content_offset, doc):
+-- 
+1.8.1.6
+
diff --git a/python-jinja2.spec b/python-jinja2.spec
index d44bc0d..afb2cb3 100644
--- a/python-jinja2.spec
+++ b/python-jinja2.spec
@@ -16,6 +16,8 @@ Group:		Development/Languages
 License:	BSD
 URL:		http://jinja.pocoo.org/
 Source0:	http://pypi.python.org/packages/source/J/Jinja2/Jinja2-%{version}.tar.gz
+# see https://github.com/mitsuhiko/jinja2/pull/259
+Patch0:		99d0f3165ace0befd9eafd661be6e0c23d5f9ba5.patch
 BuildArch:	noarch
 BuildRequires:	python-devel
 BuildRequires:	python-setuptools
@@ -68,6 +70,7 @@ environments.
 
 %prep
 %setup -q -n Jinja2-%{version}
+%patch0 -p1
 
 # cleanup
 find . -name '*.pyo' -o -name '*.pyc' -delete


More information about the scm-commits mailing list