Skip to content

Commit 40ad4a9

Browse files
feat: replace deprecated readfp method in config parser lib (#401)
This PR contains changes suggested by Yevhen Chypachenko. This is the original PR - #400.
1 parent 6e069e7 commit 40ad4a9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/build-test-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ jobs:
7676
- "3.9"
7777
- "3.10"
7878
- "3.11"
79+
- "3.12"
80+
- "3.13"
7981
steps:
8082
- uses: actions/checkout@v4
8183
- uses: actions/setup-python@v5

solnlib/splunkenv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def get_conf_stanzas(conf_name: str) -> dict:
309309

310310
parser = ConfigParser(**{"strict": False})
311311
parser.optionxform = str
312-
parser.readfp(StringIO(out))
312+
parser.read_file(StringIO(out))
313313

314314
out = {}
315315
for section in parser.sections():

0 commit comments

Comments
 (0)