From b777180db91d2e20b92f3a475ab6539c4004edbc Mon Sep 17 00:00:00 2001 From: Benjamin Schubert Date: Thu, 21 Mar 2019 11:13:03 +0000 Subject: fixup! plugin.py: move the creation and handling of the plugin table in Plugin --- buildstream/plugin.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/buildstream/plugin.py b/buildstream/plugin.py index 3b4a19bb9..c139c8cb7 100644 --- a/buildstream/plugin.py +++ b/buildstream/plugin.py @@ -700,6 +700,18 @@ class Plugin(): # Private Methods used in BuildStream # ############################################################# + # _lookup(): + # + # Fetch a plugin in the current process by its + # unique identifier + # + # Args: + # unique_id: The unique identifier as returned by + # plugin._unique_id + # + # Returns: + # (Plugin): The plugin for the given ID, or None + # @classmethod def _lookup(cls, unique_id): assert unique_id in cls.__TABLE, "Could not find plugin with ID {}".format(unique_id) -- cgit v1.2.1