aboutsummaryrefslogtreecommitdiffstats
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:10:03 +0100
commitde6e98f272e623ce72e724e66920eecf10cb2d41 (patch)
tree5c10b82c00b0e83cc7c1c1787cf9637b3ffdc048 /scripts/combo-layer
parent30d02e2aa2d42fdf76271234b2dc9f37bc46b250 (diff)
downloadopenembedded-core-contrib-de6e98f272e623ce72e724e66920eecf10cb2d41.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. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
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 52367f091d9..234d9e447b6 100755
--- a/scripts/combo-layer
+++ b/scripts/combo-layer
@@ -26,7 +26,7 @@ import optparse
import logging
import subprocess
import tempfile
-import ConfigParser
+import configparser
import re
import copy
import pipes
@@ -87,7 +87,7 @@ class Configuration(object):
self.commit_msg_template = value
logger.debug("Loading config file %s" % self.conffile)
- self.parser = ConfigParser.ConfigParser()
+ self.parser = configparser.ConfigParser()
with open(self.conffile) as f:
self.parser.readfp(f)
@@ -116,7 +116,7 @@ class Configuration(object):
self.localconffile = lcfile
logger.debug("Loading local config file %s" % self.localconffile)
- self.localparser = ConfigParser.ConfigParser()
+ self.localparser = configparser.ConfigParser()
with open(self.localconffile) as f:
self.localparser.readfp(f)