(func)
return functools.partial(graph.spawn_task, func)
Create a new rule. Calling it will be spawning a task.

    This function should be used as a decorator. The passed function
    must be a generator which follows the protocol.
Create a new rule. Calling it will be spawning a task.
Create a new rule . Calling it will be spawning a task .
def rule(func):
    """Create a new rule. Calling it will be spawning a task.

    This function should be used as a decorator. The passed function
    must be a generator which follows the protocol.
    """
    return functools.partial(graph.spawn_task, func)
def rule ( func ) : return functools . partial ( graph . spawn_task , func )