diff options
author | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2019-04-02 13:35:46 +0100 |
---|---|---|
committer | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2019-05-23 15:49:10 +0100 |
commit | 094ed0c06f17cd68a9e1e4262aaf8199b422ba9c (patch) | |
tree | 11c999d37e78cb306903c34a8e542804d9828550 | |
parent | 2caabb6ff5ff86d67b5716b60b9e357f1cc0d465 (diff) | |
download | buildstream-094ed0c06f17cd68a9e1e4262aaf8199b422ba9c.tar.gz |
WIP: pickle: Plugin - disable pickling
-rw-r--r-- | src/buildstream/plugin.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/buildstream/plugin.py b/src/buildstream/plugin.py index d8b6a7359..539d61fb2 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. |