This commit is contained in:
Thomas Nagy 2016-03-12 12:32:27 +01:00
parent 89ac2f0215
commit d81dfac34e
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
1 changed files with 1 additions and 4 deletions

View File

@ -167,9 +167,7 @@ class BuildContext(Context.Context):
"""
Wrapper for creating a task generator using the decorator notation. The following code::
@bld.rule(
target = "foo"
)
@bld.rule(target="foo")
def _(tsk):
print("bar")
@ -595,7 +593,6 @@ class BuildContext(Context.Context):
def add_to_group(self, tgen, group=None):
"""add a task or a task generator for the build"""
# paranoid
assert(isinstance(tgen, TaskGen.task_gen) or isinstance(tgen, Task.TaskBase))
tgen.bld = self
self.get_group(group).append(tgen)