summaryrefslogtreecommitdiff
path: root/buildstream/_context.py
diff options
context:
space:
mode:
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