Skip to content

Commit

Permalink
fix splunk config parsing issue in Python 3.13
Browse files Browse the repository at this point in the history
fixed AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'?
  • Loading branch information
Yevhen Chypachenko committed Oct 25, 2024
1 parent 16def61 commit 1bdce41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solnlib/splunkenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def get_conf_stanzas(conf_name: str) -> dict:

parser = ConfigParser(**{"strict": False})
parser.optionxform = str
parser.readfp(StringIO(out))
parser.read_file(StringIO(out))

out = {}
for section in parser.sections():
Expand Down

0 comments on commit 1bdce41

Please sign in to comment.