diff options
Diffstat (limited to 'src/buildstream/source.py')
-rw-r--r-- | src/buildstream/source.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/buildstream/source.py b/src/buildstream/source.py index 7fc2e9fc0..a2b566a05 100644 --- a/src/buildstream/source.py +++ b/src/buildstream/source.py @@ -1113,15 +1113,12 @@ class Source(Plugin): # Return data necessary to reconstruct this object in a child job process. # # Returns: - # (PluginContext, str, dict): A tuple of (factory, meta_kind, state), - # where `factory` is an object that can use `meta_kind` to create an - # instance of the same type as `self`. `state` is what we want - # `self.__dict__` to be restored to after instantiation in the child - # process. + # (str, dict): A tuple of (meta_kind, state), where a factory can use + # `meta_kind` to create an instance of the same type as `self`. `state` + # is what we want `self.__dict__` to be restored to after instantiation + # in the child process. # def _get_args_for_child_job_pickling(self): - factory = self._get_project().config.source_factory - # In case you're wondering, note that it doesn't seem to be necessary # to make a copy of `self.__dict__` here, because: # @@ -1131,7 +1128,7 @@ class Source(Plugin): # o The code sketch of how pickling works also returns `self.__dict__`: # https://docs.python.org/3/library/pickle.html#pickling-class-instances # - return factory, self.__meta_kind, self.__dict__ + return self.__meta_kind, self.__dict__ ############################################################# # Local Private Methods # |