Skip to content

Commit a573ed9

Browse files
committedMay 10, 2015
fix jinjify for python 3 (cc @felixfontein)
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent 64e8e4a commit a573ed9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

Diff for: ‎scripts/jinjify.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ def jinjify(in_theme, out_theme):
7777
if child in mappings:
7878
parent = mappings[child]
7979

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

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

8686
# Copy assets

0 commit comments

Comments
 (0)
Please sign in to comment.