Skip to contentSkip to conversation

devtool: Use ConfigParser instead of SafeConfigParser

PATCH New Khem Raj 1 participant 1 message Aug 11, 2018

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

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.

---
 scripts/devtool | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/devtool +1 -1
index d681a1929a..0e578c0de3 100755
@@ -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