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
|
# which config file as part of the actual service definition in
|
||||||
# windows, so the service name is used for magic lookup here.
|
# windows, so the service name is used for magic lookup here.
|
||||||
if winsvc:
|
if winsvc:
|
||||||
config = configparser.SafeConfigParser()
|
config = configparser.ConfigParser()
|
||||||
config.read(files)
|
config.read(files)
|
||||||
section = f'{appname}.config'
|
section = f'{appname}.config'
|
||||||
if config.has_section(section):
|
if config.has_section(section):
|
||||||
|
|
Loading…
Reference in a new issue