From: Casey Bodley Date: Fri, 17 Feb 2023 01:19:43 +0000 (-0500) Subject: config: read_file() instead of deprecated readfp() X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fheads%2Fwip-tox;p=ragweed.git config: read_file() instead of deprecated readfp() ragweed/framework.py:385: DeprecationWarning: This method will be removed in future versions. Use 'parser.read_file()' instead. cfg.readfp(f) Signed-off-by: Casey Bodley --- diff --git a/ragweed/framework.py b/ragweed/framework.py index 8d92325..f081501 100644 --- a/ragweed/framework.py +++ b/ragweed/framework.py @@ -382,7 +382,7 @@ class RagweedEnv: + 'variable RAGWEED_CONF to a config file.', ) with open(path, 'r') as f: - cfg.readfp(f) + cfg.read_file(f) for section in cfg.sections(): try: