diff mbox series

devtool: Use ConfigParser instead of SafeConfigParser

Message ID 20180811165400.16487-1-raj.khem@gmail.com
State Accepted
Commit 3c05c8fff779bd190b31fa8aa16b7a1b24420a60
Headers show
Series devtool: Use ConfigParser instead of SafeConfigParser | expand

Commit Message

Khem Raj Aug. 11, 2018, 4:54 p.m. UTC
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 <raj.khem@gmail.com>

---
 scripts/devtool | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.18.0

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

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):
 
     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: