Commit 3060b20d authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Simply use b'\xff' instead of u'\xff'.encode('iso-8859-15').

This avoids the deprecated u''.
parent 153c3652
......@@ -567,8 +567,7 @@ class Environment(object):
if py_compile:
import imp, marshal
py_header = imp.get_magic() + \
u'\xff\xff\xff\xff'.encode('iso-8859-15')
py_header = imp.get_magic() + b'\xff\xff\xff\xff'
def write_file(filename, data, mode):
if zip:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment