mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-05 09:17:44 +03:00
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 commitba4a1cd8a8
) (cherry picked from commit7dc6cccc4b
) (cherry picked from commit6700231d52
)
This commit is contained in:
parent
29a8835ea2
commit
725bde83bd
@ -82,7 +82,7 @@ class SysvGeneratorTest(unittest.TestCase):
|
||||
cp = RawConfigParser(dict_type=MultiDict)
|
||||
cp.optionxform = lambda o: o # don't lower-case option names
|
||||
with open(service) as f:
|
||||
cp.readfp(f)
|
||||
cp.read_file(f)
|
||||
results[os.path.basename(service)] = cp
|
||||
|
||||
return (err, results)
|
||||
|
Loading…
Reference in New Issue
Block a user