Skip to content

Commit 725bde8

Browse files
mrc0mmandbluca
authored andcommitted
test: replace readfp() with read_file()
ConfigParser.readfp() has been deprecated since Python 3.2 and was dropped completely in Python 3.11. (cherry picked from commit ba4a1cd) (cherry picked from commit 7dc6ccc) (cherry picked from commit 6700231)
1 parent 29a8835 commit 725bde8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/sysv-generator-test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def run_generator(self, expect_error=False):
8282
cp = RawConfigParser(dict_type=MultiDict)
8383
cp.optionxform = lambda o: o # don't lower-case option names
8484
with open(service) as f:
85-
cp.readfp(f)
85+
cp.read_file(f)
8686
results[os.path.basename(service)] = cp
8787

8888
return (err, results)

0 commit comments

Comments
 (0)