]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools: buildman: fix non-existing SafeConfigParser in Python 3.12+
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>
Tue, 23 Jan 2024 17:57:01 +0000 (18:57 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 29 Jan 2024 19:54:15 +0000 (14:54 -0500)
SafeConfigParser was renamed back in Python 3.2 (yes, no typo) to
ConfigParser[1], but it was still working as an alias until it got
removed in 3.12[2].

[1] https://docs.python.org/3.8/whatsnew/3.2.html#configparser
[2] https://github.com/python/cpython/pull/92503

Cc: Quentin Schulz <foss+uboot@0leil.net>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
tools/buildman/bsettings.py

index f7f8276e629136d241eafdbbb170b974dcabac64..e225ac2ca0f4f6285fb037c5dd084ca8470684ce 100644 (file)
@@ -16,7 +16,7 @@ def setup(fname=''):
     global settings
     global config_fname
 
-    settings = configparser.SafeConfigParser()
+    settings = configparser.ConfigParser()
     if fname is not None:
         config_fname = fname
         if config_fname == '':