Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_config(conf): global cfg global logfp config = ConfigParser.RawConfigParser(dict_type=MultiOrderedDict, allow_no_value=True) config.read(conf) cfg = {'dest_path': None, 'min_space': MIN_SPACE_REQUIREMENT, 'min_inodes': MIN_INODES_REQUIREMENT, 'keep_all': KEEP_ALL, 'keep_one_per_day': KEEP_ONE_PER_DAY, 'keep_one_per_week': KEEP_ONE_PER_WEEK, 'keep_one_per_month': KEEP_ONE_PER_MONTH } try: source_host = config.get('source', 'host')[0] except ConfigParser.NoOptionError: source_host = None try: