[oe-commits] [openembedded-core] 17/26: scripts/combo-layer: Fix deprecation warning

git at git.openembedded.org git at git.openembedded.org
Fri Feb 21 09:39:37 UTC 2020


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 7b43e04424985cf71b9263969830c9e4e9d72e01
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Feb 19 22:53:08 2020 +0000

    scripts/combo-layer: Fix deprecation warning
    
    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 at linuxfoundation.org>
---
 scripts/combo-layer | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/combo-layer b/scripts/combo-layer
index 9b50e98..a634dd6 100755
--- a/scripts/combo-layer
+++ b/scripts/combo-layer
@@ -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"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list