Skip to contentSkip to conversation

scripts/combo-layer: Fix deprecation warning

PATCH New Richard Purdie 1 participant 1 message Feb 19, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/combo-layer: Fix deprecation warning

Resolve:
combo-layer:83: DeprecationWarning: This method will be removed in future versions. Use 'parser.read_file()' instead.

---
 scripts/combo-layer | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/combo-layer +1 -1
index 9b50e9873da..a634dd69d2a 100755
@@ -80,7 +80,7 @@ class Configuration(object):
         logger.debug("Loading config file %s" % self.conffile)
         self.parser = configparser.ConfigParser()
         with open(self.conffile) as f:
-            self.parser.readfp(f)
+            self.parser.read_file(f)
 
         # initialize default values
         self.commit_msg_template = "Automatic commit to update last_revision"
Signature · 1 line
2.25.0