summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2017-11-07 16:59:47 +0000
committerJonathan Maw <jonathan.maw@codethink.co.uk>2017-11-14 13:03:48 +0000
commite3135b91fbc97ae4ddee05362299dcbdfe6e8110 (patch)
treedcc0486b21331a8c65a27d3213c69356aad23f34
parentcc6e09ce63c7576bd3f258515946e38a945903f4 (diff)
downloadbuildstream-e3135b91fbc97ae4ddee05362299dcbdfe6e8110.tar.gz
Apply pep 3102 to element's stage_artifact and stage_dependency_artifacts
The arguments are optional, and none of the arguments depend on each other, meaning that they do not make sense as optional positional arguments.
-rw-r--r--buildstream/element.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index 497a5223e..97a336f9a 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -338,7 +338,7 @@ class Element(Plugin):
value = self.node_get_list_element(node, str, member_name, indices)
return self.__variables.subst(value)
- def stage_artifact(self, sandbox, path=None, include=None, exclude=None, orphans=True):
+ def stage_artifact(self, sandbox, *, path=None, include=None, exclude=None, orphans=True):
"""Stage this element's output artifact in the sandbox
This will stage the files from the artifact to the sandbox at specified location.
@@ -393,7 +393,7 @@ class Element(Plugin):
return result
- def stage_dependency_artifacts(self, sandbox, scope, path=None,
+ def stage_dependency_artifacts(self, sandbox, scope, *, path=None,
include=None, exclude=None, orphans=True):
"""Stage element dependencies in scope