diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2017-11-09 15:04:14 +0000 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2017-11-14 13:03:52 +0000 |
commit | c903ecad41c3b58cb0333391495a504c91cb6b9a (patch) | |
tree | 6e6ff1de3ba11f67e967db864ef5b9f74657f0be /buildstream/plugin.py | |
parent | 1ef8e3f39238f65d59f93898375c0fb638a19fc5 (diff) | |
download | buildstream-c903ecad41c3b58cb0333391495a504c91cb6b9a.tar.gz |
plugin.py: Make timed_activity enforce keyword args
Diffstat (limited to 'buildstream/plugin.py')
-rw-r--r-- | buildstream/plugin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/plugin.py b/buildstream/plugin.py index ea445fa5d..30f4c1cb2 100644 --- a/buildstream/plugin.py +++ b/buildstream/plugin.py @@ -417,7 +417,7 @@ class Plugin(): self.__message(MessageType.ERROR, brief, detail=detail) @contextmanager - def timed_activity(self, activity_name, detail=None, silent_nested=False): + def timed_activity(self, activity_name, *, detail=None, silent_nested=False): """Context manager for performing timed activities in plugins Args: |