Skip to content

Commit

Permalink
tools: buildman: fix non-existing SafeConfigParser in Python 3.12+
Browse files Browse the repository at this point in the history
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] python/cpython#92503

Cc: Quentin Schulz <foss+uboot@0leil.net>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
(cherry picked from commit 341e8a6)
Change-Id: I5897550cc6b995163cbc260c331a2408f122725e
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/383855
Tested-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
  • Loading branch information
QSchulz authored and patrickdelaunay committed Oct 30, 2024
1 parent a531ba5 commit 307b233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/buildman/bsettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 == '':
Expand Down

0 comments on commit 307b233

Please sign in to comment.