devtool: Use ConfigParser instead of SafeConfigParser
PATCH 1/1 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.
Signed-off-by Khem Raj <[email protected]>
--- scripts/devtool | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/devtool +1 -1
@@ -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:
Signature · 1 line
2.18.0