diff options
author | Benjamin Schubert <contact@benschubert.me> | 2020-07-04 14:24:55 +0000 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2020-07-06 10:32:50 +0000 |
commit | 7fde8dde9d9ab0f885e3a5cdb5e0b868a3ac0c28 (patch) | |
tree | 1138b8a82725ddb567768212b4b58373ee14c50e | |
parent | ad6987e039dfdaa97da988ea43c4e406a0f34fb4 (diff) | |
download | buildstream-7fde8dde9d9ab0f885e3a5cdb5e0b868a3ac0c28.tar.gz |
app.py: Remove unnecessary operation in _message()
This copies a dictionary before it gets expanded, which is not necessary
since the expansion will not keep the dictionary as is
-rw-r--r-- | src/buildstream/_frontend/app.py | 3 |
1 files changed, 1 insertions, 2 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 # |