Avoid deprecation warning for ConfigParser
This commit is contained in:
parent
d73ff274df
commit
485597e7b1
|
@ -810,7 +810,7 @@ def get_config_paths(
|
|||
# which config file as part of the actual service definition in
|
||||
# windows, so the service name is used for magic lookup here.
|
||||
if winsvc:
|
||||
config = configparser.SafeConfigParser()
|
||||
config = configparser.ConfigParser()
|
||||
config.read(files)
|
||||
section = f'{appname}.config'
|
||||
if config.has_section(section):
|
||||
|
|
Loading…
Reference in a new issue