2
0
Fork 0

Avoid deprecation warning for ConfigParser

This commit is contained in:
Lance Edgar 2023-11-25 17:07:46 -06:00
parent d73ff274df
commit 485597e7b1

View file

@ -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):