

def find(self, name):
    items = []
    for child in self:
        if (name.__class__ == self.__class__):
            items += child.find(name)
        elif (child == name):
            items.append(child)
    if (len(items) == 1):
        return items[0]
    elif items:
        return items
    else:
        return None

dataset/ETHPy150Open slackhq/python-slackclient/slackclient/_util.py SearchList.find/VarMisuse@26/28 `child`->`name`