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() }
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() }