diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-07-05 19:43:43 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-07-05 22:38:24 +0200 |
commit | ba4a1cd8a863f65ff016be72e520c323aa1e1a6f (patch) | |
tree | 1f40112ecc492caf20ab13403c29bf7b4ca5f88b /test | |
parent | hwdb update for v246-rc1 (diff) | |
download | systemd-ba4a1cd8a863f65ff016be72e520c323aa1e1a6f.tar.xz systemd-ba4a1cd8a863f65ff016be72e520c323aa1e1a6f.zip |
test: replace readfp() with read_file()
ConfigParser.readfp() has been deprecated since Python 3.2 and was
dropped completely in Python 3.11.
Diffstat (limited to 'test')
-rwxr-xr-x | test/sysv-generator-test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sysv-generator-test.py b/test/sysv-generator-test.py index 1fe4153abc..24fafbaaa4 100755 --- a/test/sysv-generator-test.py +++ b/test/sysv-generator-test.py @@ -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) |