diff options
| author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-05-19 12:28:12 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 08:24:01 +0100 |
| commit | fa4275bbc0098124f3b44e0eafae83692db778b9 (patch) | |
| tree | 3285957da8be3052b7cc77bed4765e99436674c8 /scripts/combo-layer | |
| parent | 3ee70cb7259aad3b53e51884ec5b9122e804d77e (diff) | |
| download | poky-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-x | scripts/combo-layer | 6 |
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 | |||
| 26 | import logging | 26 | import logging |
| 27 | import subprocess | 27 | import subprocess |
| 28 | import tempfile | 28 | import tempfile |
| 29 | import ConfigParser | 29 | import configparser |
| 30 | import re | 30 | import re |
| 31 | import copy | 31 | import copy |
| 32 | import pipes | 32 | import 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 | ||
