Fix python-3.12 compatibility

This commit is contained in:
Vasily Evseenko 2024-08-01 14:19:36 +03:00
parent 0656148694
commit 9c46b4230a

View File

@ -74,7 +74,7 @@ def parse_config(basedir, cfg_patterns, interpolate=True):
config = configparser.RawConfigParser(strict=False)
try:
config.readfp(fd, filename=filename)
config.read_file(fd, source=filename)
except Exception as v:
raise ConfigError(v)