From 7c81d649fb86dc3ada5553dccf0a14f866b4c7e0 Mon Sep 17 00:00:00 2001 From: ljhuang Date: Fri, 22 Jul 2022 16:19:47 +0800 Subject: Replace deprecated readfp method with read_file The readfp method has been deprecated since version 3.2 [1]. [1] https://docs.python.org/3/library/configparser.html?highlight=deprecated#configparser.ConfigParser.readfp Change-Id: Ib1aa6bba91e331f25c65a5905a89de306faa1d5a --- heat_cfntools/cfntools/cfn_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heat_cfntools/cfntools/cfn_helper.py b/heat_cfntools/cfntools/cfn_helper.py index decb5d0..566ecc5 100644 --- a/heat_cfntools/cfntools/cfn_helper.py +++ b/heat_cfntools/cfntools/cfn_helper.py @@ -83,7 +83,7 @@ class HupConfig(object): def __init__(self, fp_list): self.config = ConfigParser.SafeConfigParser() for fp in fp_list: - self.config.readfp(fp) + self.config.read_file(fp) self.load_main_section() -- cgit v1.2.1