summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbst-marge-bot <marge-bot@buildstream.build>2020-07-06 11:42:52 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2020-07-06 11:42:52 +0000
commite79f4a019d1d4c23d442f61144e6ac5177eb36b2 (patch)
tree86dba9e851ad5ba731f5012cb066adc6a6f2cb59
parentad6987e039dfdaa97da988ea43c4e406a0f34fb4 (diff)
parent17548ebca305f9b10a2d228abf916e70be38cfef (diff)
downloadbuildstream-e79f4a019d1d4c23d442f61144e6ac5177eb36b2.tar.gz
Merge branch 'bschubert/cleanup' into 'master'
app.py: Remove unnecessary operation in _message() See merge request BuildStream/buildstream!1984
-rw-r--r--src/buildstream/_frontend/app.py3
-rw-r--r--src/buildstream/sandbox/sandbox.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/buildstream/_frontend/app.py b/src/buildstream/_frontend/app.py
index b77cfc130..e7831dac3 100644
--- a/src/buildstream/_frontend/app.py
+++ b/src/buildstream/_frontend/app.py
@@ -516,8 +516,7 @@ class App:
# Local message propagator
#
def _message(self, message_type, message, **kwargs):
- args = dict(kwargs)
- self.context.messenger.message(Message(message_type, message, **args))
+ self.context.messenger.message(Message(message_type, message, **kwargs))
# Exception handler
#
diff --git a/src/buildstream/sandbox/sandbox.py b/src/buildstream/sandbox/sandbox.py
index 592866dac..031968826 100644
--- a/src/buildstream/sandbox/sandbox.py
+++ b/src/buildstream/sandbox/sandbox.py
@@ -35,7 +35,7 @@ import contextlib
from contextlib import contextmanager
from typing import Dict, Generator, List, Optional, TYPE_CHECKING
-from .._exceptions import ImplError, BstError, SandboxError
+from .._exceptions import ImplError, SandboxError
from .._message import Message, MessageType
from ..storage.directory import Directory
from ..storage._casbaseddirectory import CasBasedDirectory