diff --git a/test/sysv-generator-test.py b/test/sysv-generator-test.py index 1fe4153abc4..24fafbaaa49 100755 --- a/test/sysv-generator-test.py +++ b/test/sysv-generator-test.py @@ -82,7 +82,7 @@ def run_generator(self, expect_error=False): 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)