summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2017-11-08 14:32:01 +0000
committerJonathan Maw <jonathan.maw@codethink.co.uk>2017-11-14 13:03:49 +0000
commit927fd1b8aa5c292109c25c3ed1113078939ce961 (patch)
treecd41c8c73030192bbf587b8500dccc41dafb4d93
parente3135b91fbc97ae4ddee05362299dcbdfe6e8110 (diff)
downloadbuildstream-927fd1b8aa5c292109c25c3ed1113078939ce961.tar.gz
Make Element.depends use mandatory keyword args
Since the 'recurse' arg is a boolean, using it as an argument without a keyword is likely to cause confusion.
-rw-r--r--buildstream/element.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index 97a336f9a..c94ba0a31 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -177,7 +177,7 @@ class Element(Plugin):
for source in self.__sources:
yield source
- def dependencies(self, scope, recurse=True, visited=None, recursed=False):
+ def dependencies(self, scope, *, recurse=True, visited=None, recursed=False):
"""dependencies(scope, recurse=True)
A generator function which yields the dependencies of the given element.