From 3b74aaef228abacc5ce880e4129d757eabd2de8a Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Thu, 16 Feb 2023 20:19:43 -0500 Subject: [PATCH] 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 --- ragweed/framework.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.47.3