Skip to content
Browse files

Fixed an unicode error after 2to3

  • Loading branch information...
1 parent 9e9cf47 commit 21a2010bf2768bc658e09666c2135063ce004efc @mitsuhiko mitsuhiko committed Sep 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 jinja2/environment.py
View
2 jinja2/environment.py
@@ -572,7 +572,7 @@ def compile_templates(self, target, extensions=None, filter_func=None,
# Python 3.3 added a source filesize to the header
if sys.version_info >= (3, 3):
- py_header += '\x00\x00\x00\x00'
+ py_header += u'\x00\x00\x00\x00'.encode('iso-8859-15')
def write_file(filename, data, mode):
if zip:

0 comments on commit 21a2010

Please sign in to comment.
Something went wrong with that request. Please try again.