diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2012-09-16 08:30:50 +0900 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2012-09-16 08:30:50 +0900 |
commit | 21a2010bf2768bc658e09666c2135063ce004efc (patch) | |
tree | e24b5976c98397f0fdf744edecc2d272b5a7ad3c | |
parent | 9e9cf47c81dc3ecae451b4224168ca6bab2cf701 (diff) | |
download | jinja2-21a2010bf2768bc658e09666c2135063ce004efc.tar.gz |
Fixed an unicode error after 2to3
-rw-r--r-- | jinja2/environment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jinja2/environment.py b/jinja2/environment.py index 130f9a1..1b5dc40 100644 --- a/jinja2/environment.py +++ b/jinja2/environment.py @@ -572,7 +572,7 @@ class Environment(object): # 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: |