

def _walk(self):
    visited = set()
    todo = [self.node]

    def key(n):
        i = Inspector(n)
        return (i.get_root(), i.get_path())
    while todo:
        n = todo.pop(0)
        (yield n)
        visited.add(key(n))
        for c in Inspector(n).get_childnodes(verify_parent=False):
            if (key(c) not in visited):
                todo.append(todo)

dataset/ETHPy150Open jonathanslenders/python-deployer/deployer/inspection/inspector.py Inspector._walk/VarMisuse@119/132 `c`->`todo`