tools/image-info: fix _read_inifile_to_dict
`RawConfigParser.readfp` was deprecated in favour of `.read_file`.
This commit is contained in:
parent
547f74e7db
commit
b8cebc17ae
1 changed files with 1 additions and 1 deletions
|
|
@ -2121,7 +2121,7 @@ def _read_inifile_to_dict(config_path):
|
||||||
parser = configparser.RawConfigParser()
|
parser = configparser.RawConfigParser()
|
||||||
# prevent conversion of the opion name to lowercase
|
# prevent conversion of the opion name to lowercase
|
||||||
parser.optionxform = lambda option: option
|
parser.optionxform = lambda option: option
|
||||||
parser.readfp(f)
|
parser.read_file(f)
|
||||||
|
|
||||||
for section in parser.sections():
|
for section in parser.sections():
|
||||||
section_config = dict(parser.items(section))
|
section_config = dict(parser.items(section))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue