sh4nks 8 лет назад
Родитель
Сommit
3861dab5b8
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      flaskbb/cli/utils.py

+ 1 - 1
flaskbb/cli/utils.py

@@ -170,7 +170,7 @@ def write_config(config, config_template, config_path):
     :param config_template: The config (jinja2-)template.
     :param config_path: The place to write the new config file.
     """
-    with open(config_path, 'w') as cfg_file:
+    with open(config_path, 'wb') as cfg_file:
         cfg_file.write(
             config_template.render(**config).encode("utf-8")
         )