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 <[email protected]>
Signed-off-by: Quentin Schulz <[email protected]>
  • Loading branch information
QSchulz authored and trini committed Jan 29, 2024
1 parent 24adbee commit 341e8a6
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 341e8a6

Please sign in to comment.