def get_workers(self):
        sock = self.connect()
        sock.send("workers\n")
        buf = ""
        while ".\n" not in buf:
            buf += sock.recv(8192)

        info = []
        for l in buf.split('\n'):
            if l.strip() == '.':
                break
            m = worker_re.match(l)
            i = m.groupdict()
            i['abilities'] = [x for x in i['abilities'].split(' ') if x]
            info.append(i)
        return info
dataset/ETHPy150Open samuel/python-munin/munin/gearman.py/MuninGearmanPlugin.get_workers/original