diff options
Diffstat (limited to 'src/buildstream/_stream.py')
-rw-r--r-- | src/buildstream/_stream.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/buildstream/_stream.py b/src/buildstream/_stream.py index 44faf2bc7..b38927e18 100644 --- a/src/buildstream/_stream.py +++ b/src/buildstream/_stream.py @@ -1643,21 +1643,6 @@ class Stream: self._notification_queue.appendleft(notification) self._notifier() - def __getstate__(self): - # The only use-cases for pickling in BuildStream at the time of writing - # are enabling the 'spawn' method of starting child processes, and - # saving jobs to disk for replays. - # - # In both of these use-cases, a common mistake is that something being - # pickled indirectly holds a reference to the Stream, which in turn - # holds lots of things that are not pickleable. - # - # Make this situation easier to debug by failing early, in the - # Stream itself. Pickling this is almost certainly a mistake, unless - # a new use-case arises. - # - raise TypeError("Stream objects should not be pickled.") - # _handle_compression() # |