From a80bfd53c158930f10acf70a14060df3f7786f0d Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Fri, 21 Jun 2019 17:11:26 -0500 Subject: [PATCH] Allow duplicate values in config files --- src/config_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config_utils.py b/src/config_utils.py index 45a574a..83ba01a 100644 --- a/src/config_utils.py +++ b/src/config_utils.py @@ -6,8 +6,8 @@ import string class ConfigLoadError(Exception): pass def load_config(config_path, configspec_path=None, *args, **kwargs): - if os.path.exists(config_path): - clean_config(config_path) +# if os.path.exists(config_path): +# clean_config(config_path) spec = ConfigObj(configspec_path, encoding='UTF8', list_values=False, _inspec=True) try: config = ConfigObj(infile=config_path, configspec=spec, create_empty=True, encoding='UTF8', *args, **kwargs)