Skip to content

Commit

Permalink
Replace deprecated ConfigParser readfp with read_file (#181)
Browse files Browse the repository at this point in the history
ConfigParser's `readfp()` has been deprecated since
Python 3.2 and has been removed in Python 3.12
  • Loading branch information
MohitBhar committed May 15, 2024
1 parent 2a79826 commit 8d4cb6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

Expand Down

0 comments on commit 8d4cb6e

Please sign in to comment.