tools/image-info: fix _read_inifile_to_dict

`RawConfigParser.readfp` was deprecated in favour of `.read_file`.
This commit is contained in:
Sanne Raymaekers 2024-06-26 10:58:14 +02:00
parent 547f74e7db
commit b8cebc17ae

View file

@ -2121,7 +2121,7 @@ def _read_inifile_to_dict(config_path):
parser = configparser.RawConfigParser()
# prevent conversion of the opion name to lowercase
parser.optionxform = lambda option: option
parser.readfp(f)
parser.read_file(f)
for section in parser.sections():
section_config = dict(parser.items(section))