Python 3.8 fixes.

This commit is contained in:
Antoine Nguyen
2020-09-15 11:14:23 +02:00
parent c3b6ce9b8e
commit 1fa390513d
5 changed files with 31 additions and 12 deletions

4
run.py
View File

@@ -79,9 +79,9 @@ def main(input_args):
utils.check_config_file(args.configfile, args.interactive, args.upgrade)
if args.stop_after_configfile_check:
return
config = configparser.SafeConfigParser()
config = configparser.ConfigParser()
with open(args.configfile) as fp:
config.readfp(fp)
config.read_file(fp)
if not config.has_section("general"):
config.add_section("general")
config.set("general", "domain", args.domain)