From 224fdd7c551f637cf96be603cbeae2b6fa178454 Mon Sep 17 00:00:00 2001 From: Patrick Ulbrich Date: Sat, 19 Oct 2019 18:18:42 +0200 Subject: [PATCH] Don't write config files in binary mode --- Mailnag/common/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mailnag/common/config.py b/Mailnag/common/config.py index f77b195..76be3c3 100644 --- a/Mailnag/common/config.py +++ b/Mailnag/common/config.py @@ -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)