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

git at git.openembedded.org git at git.openembedded.org
Tue Aug 14 10:37:15 UTC 2018


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

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

commit 3c05c8fff779bd190b31fa8aa16b7a1b24420a60
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