From ae0b1483689cf296f1d053bed9bae8fadb7632a6 Mon Sep 17 00:00:00 2001 From: Mohit Date: Wed, 15 May 2024 20:14:15 +0530 Subject: [PATCH] Replace deprecated ConfigParser readfp with read_file ConfigParser's `readfp()` has been deprecated since Python 3.2 and has been removed in Python 3.12 --- config/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.py b/config/config.py index cc61987..6082545 100644 --- a/config/config.py +++ b/config/config.py @@ -41,7 +41,7 @@ def artifact(option, dflt, valid_values=None): cfg_path = os.path.join(repo_root, ".pomgenrc") if os.path.exists(cfg_path): with open(cfg_path, 'r') as f: - parser.readfp(f) + parser.read_file(f) pom_template_p = gen("pom_template_path", ["config/pom_template.xml"])