mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
tools: binman: fix deprecated Python ConfigParser methods
The method `ConfigParser.readfp()` is marked deprecated[1]. In Python 3.12 this method have been removed, so replace it with `ConfigParser.read_file()`. [1] https://docs.python.org/3.11/library/configparser.html#configparser.ConfigParser.readfp Signed-off-by: Brandon Maier <brandon.maier@collins.com> CC: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Simon Glass
parent
357bfca5e6
commit
698b60a6a2
@@ -29,7 +29,7 @@ def setup(fname=''):
|
||||
settings.read(config_fname)
|
||||
|
||||
def add_file(data):
|
||||
settings.readfp(io.StringIO(data))
|
||||
settings.read_file(io.StringIO(data))
|
||||
|
||||
def get_items(section):
|
||||
"""Get the items from a section of the config.
|
||||
|
||||
Reference in New Issue
Block a user