Don't write config files in binary mode

This commit is contained in:
Patrick Ulbrich
2019-10-19 18:18:42 +02:00
parent 77022172af
commit 224fdd7c55

View File

@@ -58,4 +58,4 @@ def write_cfg(cfg):
if not os.path.exists(cfg_folder):
os.makedirs(cfg_folder)
with open(cfg_file, 'wb') as configfile: cfg.write(configfile)
with open(cfg_file, 'w') as configfile: cfg.write(configfile)