Blame SOURCES/jinja2-fix-unicode-error.patch

3d161c
commit 21a2010bf2768bc658e09666c2135063ce004efc
3d161c
Author: Armin Ronacher <armin.ronacher@active-4.com>
3d161c
Date:   Sun Sep 16 08:30:50 2012 +0900
3d161c
3d161c
    Fixed an unicode error after 2to3
3d161c
3d161c
diff --git a/jinja2/environment.py b/jinja2/environment.py
3d161c
index 130f9a1..1b5dc40 100644
3d161c
--- a/jinja2/environment.py
3d161c
+++ b/jinja2/environment.py
3d161c
@@ -572,7 +572,7 @@ class Environment(object):
3d161c
 
3d161c
             # Python 3.3 added a source filesize to the header
3d161c
             if sys.version_info >= (3, 3):
3d161c
-                py_header += '\x00\x00\x00\x00'
3d161c
+                py_header += u'\x00\x00\x00\x00'.encode('iso-8859-15')
3d161c
 
3d161c
         def write_file(filename, data, mode):
3d161c
             if zip: