

def parse_config_file(self, config_path):
    config_parser = ConfigParser.SafeConfigParser()
    config_parser.optionxform = str
    logger.info('Parsing config file: %s', config_path)
    if (not config_parser.read(config_path)):
        logger.critical("Can't parse config file: %s", config_path)
        sys.exit(1)
    logger.info('Successfully parsed config file')
    return config_parser

dataset/ETHPy150Open XiaoMi/minos/owl/collector/management/commands/collect.py CollectorConfig.parse_config_file/original