From: Richard Purdie Date: Wed, 19 Feb 2020 22:53:08 +0000 (+0000) Subject: scripts/combo-layer: Fix deprecation warning X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~11791 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b43e04424985cf71b9263969830c9e4e9d72e01;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/scripts/combo-layer b/scripts/combo-layer index 9b50e9873da..a634dd69d2a 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"