]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: binman: fix deprecated Python ConfigParser methods
authorBrandon Maier <brandon.maier@collins.com>
Tue, 4 Jun 2024 16:16:06 +0000 (16:16 +0000)
committerSimon Glass <sjg@chromium.org>
Wed, 3 Jul 2024 06:36:33 +0000 (07:36 +0100)
commit698b60a6a23a29a556d5a00c5eead63fb3fdd4f3
treea2c68ec617fe5e4a5b71b589658cffaef3974b62
parent357bfca5e616c7fc003cce1ddda44016660cf75f
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>
tools/buildman/bsettings.py