Skip to content

Commit

Permalink
fix jinjify for python 3 (cc @felixfontein)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 10, 2015
1 parent 64e8e4a commit a573ed9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/jinjify.py
Expand Up @@ -77,10 +77,10 @@ def jinjify(in_theme, out_theme):
if child in mappings:
parent = mappings[child]

with open(os.path.join(out_theme, "parent"), "wb+") as outf:
with io.open(os.path.join(out_theme, "parent"), "w+", encoding='utf-8') as outf:
outf.write(parent + '\n')

with open(os.path.join(out_theme, "engine"), "wb+") as outf:
with io.open(os.path.join(out_theme, "engine"), "w+", encoding='utf-8') as outf:
outf.write("jinja\n")

# Copy assets
Expand Down

0 comments on commit a573ed9

Please sign in to comment.