def _closure(self, target):
    """Return the target closure as defined by this dependency calculator's definition of a walk."""
    closure = set()

    def collect(current):
      closure.add(current)
      return True
    self._walk(target, collect)

    return closure
def _closure ( self , target ) : closure = set ( ) def collect ( current ) : closure . add ( current ) return True self . _walk ( target , collect ) return closure
Return the target closure as defined by this dependency calculator's definition of a walk.