

def _iter_funcs(self, func_name):
    hooks = []
    for plugin in self.instance.master.ctrl.plugins.values():
        if ('get_hooks' not in plugin):
            continue
        hooks.extend(plugin['get_hooks']())
    if ('hooks' in self.instance.config):
        func.extend(self.instance.config['hooks'].hooks)
    for hook in hooks:
        func = getattr(hook, func_name, None)
        if (func is not None):
            (yield func)

dataset/ETHPy150Open ployground/ploy/ploy/common.py InstanceHooks._iter_funcs/VarMisuse@75/93 `hooks`->`func`