summaryrefslogtreecommitdiffstats
path: root/scripts/combo-layer
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-05-19 12:28:12 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-02 08:24:01 +0100
commitfa4275bbc0098124f3b44e0eafae83692db778b9 (patch)
tree3285957da8be3052b7cc77bed4765e99436674c8 /scripts/combo-layer
parent3ee70cb7259aad3b53e51884ec5b9122e804d77e (diff)
downloadpoky-fa4275bbc0098124f3b44e0eafae83692db778b9.tar.gz
scripts: Rename ConfigParser -> configparser for python3
The ConfigParser API was renamed to configparser in python 3. Renamed ConfigParser -> configparser in scripts/ to make the code working in python 3. (From OE-Core rev: de6e98f272e623ce72e724e66920eecf10cb2d41) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/combo-layer')
-rwxr-xr-xscripts/combo-layer6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/combo-layer b/scripts/combo-layer
index 52367f091d..234d9e447b 100755
--- a/scripts/combo-layer
+++ b/scripts/combo-layer
@@ -26,7 +26,7 @@ import optparse
26import logging 26import logging
27import subprocess 27import subprocess
28import tempfile 28import tempfile
29import ConfigParser 29import configparser
30import re 30import re
31import copy 31import copy
32import pipes 32import pipes
@@ -87,7 +87,7 @@ class Configuration(object):
87 self.commit_msg_template = value 87 self.commit_msg_template = value
88 88
89 logger.debug("Loading config file %s" % self.conffile) 89 logger.debug("Loading config file %s" % self.conffile)
90 self.parser = ConfigParser.ConfigParser() 90 self.parser = configparser.ConfigParser()
91 with open(self.conffile) as f: 91 with open(self.conffile) as f:
92 self.parser.readfp(f) 92 self.parser.readfp(f)
93 93
@@ -116,7 +116,7 @@ class Configuration(object):
116 116
117 self.localconffile = lcfile 117 self.localconffile = lcfile
118 logger.debug("Loading local config file %s" % self.localconffile) 118 logger.debug("Loading local config file %s" % self.localconffile)
119 self.localparser = ConfigParser.ConfigParser() 119 self.localparser = configparser.ConfigParser()
120 with open(self.localconffile) as f: 120 with open(self.localconffile) as f:
121 self.localparser.readfp(f) 121 self.localparser.readfp(f)
122 122