]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/combo-layer: Fix deprecation warning
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 19 Feb 2020 22:53:08 +0000 (22:53 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Feb 2020 09:37:04 +0000 (09:37 +0000)
Resolve:
combo-layer:83: DeprecationWarning: This method will be removed in future versions.  Use 'parser.read_file()' instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/combo-layer

index 9b50e9873da46b6fe48a246c4fc0f34dda5fe9d7..a634dd69d2a07ad775772d1ee7673469f9da44bf 100755 (executable)
@@ -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"