[PATCH 2/3] tools: binman: fix deprecated Python ConfigParser methods

Simon Glass sjg at chromium.org
Wed Jun 5 04:13:40 CEST 2024


Hi Brandon,

On Tue, 4 Jun 2024 at 10:16, Brandon Maier <brandon.maier at collins.com> wrote:
>
> 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 at collins.com>
> CC: Simon Glass <sjg at chromium.org>
> ---
>  tools/buildman/bsettings.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

Does this still work in earlier Pythons?

Regards,
Simon


More information about the U-Boot mailing list