def __init__(self, cardinal, plugins=None):
        # Initialize logger
        self.logger = logging.getLogger(__name__)

        # Set default to empty object
        self.plugins = {}

        # To prevent circular dependencies, we can't sanity check this. Hope
        # for the best.
        self.cardinal = cardinal

        # Make sure we operate on a list
        if plugins is not None and not isinstance(plugins, list):
            raise TypeError("Plugins argument must be a list")
        elif plugins is None:
            return

        self.load(plugins)
Convert a string into a list.
dataset/ETHPy150Open JohnMaguire/Cardinal/cardinal/plugins.py/PluginManager.__init__--crossover with--dataset/ETHPy150Open enthought/traitsui/traitsui/editors/csv_list_editor.py/_eval_list_str