[oe-commits] [openembedded-core] 31/31: devtool: Use ConfigParser instead of SafeConfigParser

git at git.openembedded.org git at git.openembedded.org
Mon Aug 13 14:02:09 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit de8020a0296c3cccbf7c26967c2049f01abdd8fa
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Sat Aug 11 09:54:00 2018 -0700

    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 <raj.khem at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/devtool | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/devtool b/scripts/devtool
index d681a19..0e578c0 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:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list