From: Michael Tremer Date: Thu, 24 Jul 2025 15:37:37 +0000 (+0000) Subject: backend: Update reading the configuration X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8163f390483cbaf43b2713a01bdcbb621d7ab289;p=ipfire.org.git backend: Update reading the configuration The readfp() function was removed in newer versions of Python. Signed-off-by: Michael Tremer --- diff --git a/src/backend/base.py b/src/backend/base.py index cfe7a78f..80bd4362 100644 --- a/src/backend/base.py +++ b/src/backend/base.py @@ -88,7 +88,7 @@ class Backend(object): cp = configparser.ConfigParser() # Initialize configuration with some sensible defaults - cp.readfp(DEFAULT_CONFIG) + cp.read_file(DEFAULT_CONFIG) # Parse file cp.read(configfile)