# HG changeset patch # User Goffi # Date 1616260998 -3600 # Node ID 4117f1b63765efec57536a60e1bc2a41c81c3ae7 # Parent 28aded9b8460be2d8320ce864f915a46fa3b11b7 core (twisted/plugin): use `config.parseMainConf` instad of configparser diff -r 28aded9b8460 -r 4117f1b63765 twisted/plugins/libervia_server.py --- a/twisted/plugins/libervia_server.py Sat Mar 20 18:22:33 2021 +0100 +++ b/twisted/plugins/libervia_server.py Sat Mar 20 18:23:18 2021 +0100 @@ -181,8 +181,7 @@ # on the command line. # FIXME: must be refactored + code can be factorised with backend - config_parser = configparser.ConfigParser() - config_parser.read(C.CONFIG_FILES) + config_parser = config.parseMainConf(True) self.handleDeprecated(config_parser) for param in self.optParameters + OPT_PARAMETERS_CFG: name = param[0]