Skip to content

Commit

Permalink
feat: replace deprecated readfp method in config parser lib (#401)
Browse files Browse the repository at this point in the history
This PR contains changes suggested by Yevhen Chypachenko.

This is the original PR - #400.
  • Loading branch information
sgoral-splunk authored Oct 29, 2024
1 parent 6e069e7 commit 40ad4a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down
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 40ad4a9

Please sign in to comment.