summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos Evripiotis <jevripiotis@bloomberg.net>2019-04-02 13:35:46 +0100
committerAngelos Evripiotis <jevripiotis@bloomberg.net>2019-05-23 15:49:10 +0100
commit094ed0c06f17cd68a9e1e4262aaf8199b422ba9c (patch)
tree11c999d37e78cb306903c34a8e542804d9828550
parent2caabb6ff5ff86d67b5716b60b9e357f1cc0d465 (diff)
downloadbuildstream-094ed0c06f17cd68a9e1e4262aaf8199b422ba9c.tar.gz
WIP: pickle: Plugin - disable pickling
-rw-r--r--src/buildstream/plugin.py6
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.