This is an automated email from the ASF dual-hosted git repository. tvb pushed a commit to branch aevri/picklable_jobs in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 094ed0c06f17cd68a9e1e4262aaf8199b422ba9c Author: Angelos Evripiotis <[email protected]> AuthorDate: Tue Apr 2 13:35:46 2019 +0100 WIP: pickle: Plugin - disable pickling --- src/buildstream/plugin.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/buildstream/plugin.py b/src/buildstream/plugin.py index d8b6a73..539d61f 100644 --- a/src/buildstream/plugin.py +++ b/src/buildstream/plugin.py @@ -252,6 +252,12 @@ class Plugin(): self.BST_PLUGIN_DEPRECATION_MESSAGE) self.__message(MessageType.WARN, detail) + def __getstate__(self): + raise NotImplementedError("Don't pickle this.") + + def __setstate__(self, state): + raise NotImplementedError("Don't pickle this.") + def __del__(self): # Dont send anything through the Message() pipeline at destruction time, # any subsequent lookup of plugin by unique id would raise KeyError.
