diff --git a/mackup/appsdb.py b/mackup/appsdb.py index 638ff40f4..3699cb1f0 100644 --- a/mackup/appsdb.py +++ b/mackup/appsdb.py @@ -26,7 +26,7 @@ def __init__(self): self.apps = dict() for config_file in ApplicationsDatabase.get_config_files(): - config = configparser.SafeConfigParser(allow_no_value=True) + config = configparser.ConfigParser(allow_no_value=True) # Needed to not lowercase the configuration_files in the ini files config.optionxform = str diff --git a/mackup/config.py b/mackup/config.py index 5fbbc9140..870a390d6 100644 --- a/mackup/config.py +++ b/mackup/config.py @@ -139,7 +139,7 @@ def _setup_parser(self, filename=None): filename (str) or None Returns: - SafeConfigParser + ConfigParser """ assert isinstance(filename, str) or filename is None @@ -147,7 +147,7 @@ def _setup_parser(self, filename=None): if not filename: filename = MACKUP_CONFIG_FILE - parser = configparser.SafeConfigParser( + parser = configparser.ConfigParser( allow_no_value=True, inline_comment_prefixes=(";", "#") ) parser.read(os.path.join(os.path.join(os.environ["HOME"], filename)))