summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorljhuang <huang.liujie@99cloud.net>2022-07-22 16:19:47 +0800
committerljhuang <huang.liujie@99cloud.net>2022-07-22 17:19:17 +0800
commit7c81d649fb86dc3ada5553dccf0a14f866b4c7e0 (patch)
treeb710a9241d9dac7129b46aceeb320bd26afa30a5
parent53ea35f467b83ce71dc1b0b1b624193c0b3a306d (diff)
downloadheat-cfntools-7c81d649fb86dc3ada5553dccf0a14f866b4c7e0.tar.gz
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
-rw-r--r--heat_cfntools/cfntools/cfn_helper.py2
1 files changed, 1 insertions, 1 deletions
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()