Skip to content

Commit 7605531

Browse files
committed
fix broken build for python3 where b in binary is needed to write utf-8 encoded string
1 parent c00fcfc commit 7605531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

moban/engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def apply_template(jj2_template, data, output_file):
7272
"""
7373
write templated result
7474
"""
75-
with open(output_file, 'w') as output:
75+
with open(output_file, 'wb') as output:
7676
rendered_content = jj2_template.render(**data)
7777
output.write(rendered_content.encode('utf-8'))
7878

0 commit comments

Comments
 (0)