From b8cebc17ae14ea2ecfcfd0c4f60817b8d7c1667e Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Wed, 26 Jun 2024 10:58:14 +0200 Subject: [PATCH] tools/image-info: fix _read_inifile_to_dict `RawConfigParser.readfp` was deprecated in favour of `.read_file`. --- tools/image-info | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/image-info b/tools/image-info index 176a5c5cf..ff1f1c286 100755 --- a/tools/image-info +++ b/tools/image-info @@ -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))