Skip to content

Commit

Permalink
py3: fix file io in runner
Browse files Browse the repository at this point in the history
  • Loading branch information
julen committed Jan 21, 2020
1 parent ce94dc8 commit d2443f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pootle/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ def init_settings(settings_filepath, template_filename,
"db_port": db_port,
}

with open(settings_filepath, 'w') as settings:
with open(settings_filepath, 'w', encoding='utf-8') as settings:
with open(template_filename) as template:
settings.write(
(template.read().decode("utf8") % context).encode("utf8"))
(template.read() % context))


def init_command(parser, settings_template, args):
Expand Down

0 comments on commit d2443f4

Please sign in to comment.