

def getCommands(self, keys):
    if (not keys):
        return []
    tree = self.keytree
    for key in keys:
        tree = tree.keys.get(key)
        if (not tree):
            return []
    ret = tree.commands[:]
    if ret.keys:
        ret.append(FURTHER_INPUT)
    return ret

dataset/ETHPy150Open openstack/gertty/gertty/keymap.py KeyMap.getCommands/VarMisuse@73/79 `tree`->`ret`