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>
This commit is contained in:
Khem Raj 2018-08-11 09:54:00 -07:00 committed by Richard Purdie
parent 8d959ad31a
commit 735f139471

View File

@ -51,7 +51,7 @@ class ConfigHandler(object):
def __init__(self, filename):
self.config_file = filename
self.config_obj = configparser.SafeConfigParser()
self.config_obj = configparser.ConfigParser()
def get(self, section, option, default=None):
try: