diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-08-11 09:54:00 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-14 11:36:31 +0100 |
commit | 735f1394710aed860f8117002f13183be0321a84 (patch) | |
tree | ba57d9e1bc216d21c320d2fb15784e18f6094e89 /scripts/devtool | |
parent | 8d959ad31a3c8fa15ca692f5240d9565ecfec8bd (diff) | |
download | poky-735f1394710aed860f8117002f13183be0321a84.tar.gz |
devtool: Use ConfigParser instead of SafeConfigParser
The SafeConfigParser class has been renamed to ConfigParser in Python
3.2+ see
http://bugs.python.org/issue10627
This alias will be removed in future versions.So we can use
ConfigParser directly instead.
(From OE-Core rev: 3c05c8fff779bd190b31fa8aa16b7a1b24420a60)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/devtool')
-rwxr-xr-x | scripts/devtool | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/devtool b/scripts/devtool index d681a1929a..0e578c0de3 100755 --- a/scripts/devtool +++ b/scripts/devtool | |||
@@ -51,7 +51,7 @@ class ConfigHandler(object): | |||
51 | 51 | ||
52 | def __init__(self, filename): | 52 | def __init__(self, filename): |
53 | self.config_file = filename | 53 | self.config_file = filename |
54 | self.config_obj = configparser.SafeConfigParser() | 54 | self.config_obj = configparser.ConfigParser() |
55 | 55 | ||
56 | def get(self, section, option, default=None): | 56 | def get(self, section, option, default=None): |
57 | try: | 57 | try: |