Commit 0515f307 authored by Jason R. Coombs's avatar Jason R. Coombs

Backed out changeset: b0a2fcc5275a Ref #193

parent 36addf1e
......@@ -304,7 +304,8 @@ def write_file(filename, contents):
sequence of strings without line terminators) to it.
"""
contents = "\n".join(contents)
contents = contents.encode("utf-8")
if sys.version_info >= (3,):
contents = contents.encode("utf-8")
f = open(filename, "wb") # always write POSIX-style manifest
f.write(contents)
f.close()
......
Markdown is supported
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