summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2018-10-23 16:31:02 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2018-10-25 15:43:52 +0100
commit4f84e2f6dc6f557f287fb380496bb510f3e8ca19 (patch)
tree9324ed4e362a21392d03c8d5c17965a5f0ec0c53
parentc5c0654d194a165196cb5b31c6c3b1e07620e98a (diff)
downloadbuildstream-4f84e2f6dc6f557f287fb380496bb510f3e8ca19.tar.gz
element.py: Silence pylint warning about abstract method
Unfortunately pylint can't understand that we'll always use subclasses of Element and as such complains of a no-return function (`assemble()`) having its return value used. This quietens that warning. Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
-rw-r--r--buildstream/element.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index baf0be3f5..6536d2582 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -1563,7 +1563,7 @@ class Element(Plugin):
# Step 3 - Prepare
self.__prepare(sandbox)
# Step 4 - Assemble
- collect = self.assemble(sandbox)
+ collect = self.assemble(sandbox) # pylint: disable=assignment-from-no-return
self.__set_build_result(success=True, description="succeeded")
except BstError as e:
# If an error occurred assembling an element in a sandbox,