MCPcopy
hub / github.com/celery/celery / _matcher

Function _matcher

celery/utils/functional.py:98–108  ·  view source on GitHub ↗
(it, *args, **kwargs)

Source from the content-addressed store, hash-verified

96 """
97
98 def _matcher(it, *args, **kwargs):
99 for obj in it:
100 try:
101 meth = getattr(maybe_evaluate(obj), method)
102 reply = (on_call(meth, *args, **kwargs) if on_call
103 else meth(*args, **kwargs))
104 except AttributeError:
105 pass
106 else:
107 if reply is not None:
108 return reply
109
110 return _matcher
111

Callers

nothing calls this directly

Calls 2

maybe_evaluateFunction · 0.85
on_callFunction · 0.85

Tested by

no test coverage detected