예제 #1
0
def parse_slave(config_path):
    """Returns a dictionary of `Slave` objects."""
    config = configparser.ConfigParser()
    config.read(config_path)
    return {
        name: Slave.factory(config[name])
        for name in config.sections()
    }