Skip to content

Commit

Permalink
[options] compatibility fix for python 3.12
Browse files Browse the repository at this point in the history
Addresses ConfigParser.readfp removal in 3.12.

Fixes #3308

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=2223526
Signed-off-by: Sandro Bonazzola <[email protected]>
  • Loading branch information
sandrobonazzola authored and TurboTurtle committed Jul 19, 2023
1 parent d2a1442 commit 97bc495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sos/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def _update_from_section(section, config):
try:
try:
with open(config_file) as f:
config.readfp(f)
config.read_file(f, config_file)
except DuplicateOptionError as err:
raise exit("Duplicate option '%s' in section '%s' in file %s"
% (err.option, err.section, config_file))
Expand Down

0 comments on commit 97bc495

Please sign in to comment.