summaryrefslogtreecommitdiff
path: root/buildstream/_context.py
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.com>2018-02-14 17:02:00 +0000
committerJames Ennis <james.ennis@codethink.com>2018-03-14 14:10:26 +0000
commit81833add3730eb3f8b489e9f5cc34df7617373fc (patch)
tree8072db8db7bff7befedf6fa09de506d7e0ba3fd3 /buildstream/_context.py
parent0394d67d26035234553c506539b1bd790cddec1d (diff)
downloadbuildstream-81833add3730eb3f8b489e9f5cc34df7617373fc.tar.gz
pylint - dealt with superfluous-parens warning
Diffstat (limited to 'buildstream/_context.py')
-rw-r--r--buildstream/_context.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_context.py b/buildstream/_context.py
index d93aa749f..2db13cf98 100644
--- a/buildstream/_context.py
+++ b/buildstream/_context.py
@@ -308,7 +308,7 @@ class Context():
self._message_depth.appendleft(silent_nested)
def _pop_message_depth(self):
- assert(self._message_depth)
+ assert self._message_depth
self._message_depth.popleft()
def _silent_messages(self):
@@ -334,7 +334,7 @@ class Context():
# Send it off to the log handler (can be the frontend,
# or it can be the child task which will log and propagate
# to the frontend)
- assert(self._message_handler)
+ assert self._message_handler
self._message_handler(message, context=self)
return