def lookup(self, prefix): aList = codewise.cmd_functions([prefix]) hits = (z.split(None, 1) for z in aList if z.strip()) desc = [] for h in hits: s = h[0] if 1: desc.append(s) else: sig = h[1].strip()[2:-4].strip() desc.append(s + '\t' + sig) aList = list(set(desc)) aList.sort() return aList
def lookup(self,prefix): aList = codewise.cmd_functions([prefix]) hits = (z.split(None,1) for z in aList if z.strip()) desc = [] for h in hits: s = h[0] if 1: desc.append(s) else: sig = h[1].strip()[2:-4].strip() desc.append(s + '\t' + sig) aList = list(set(desc)) aList.sort() return aList