MCPcopy
hub / github.com/celery/celery / maybe_list

Function maybe_list

celery/bin/graph.py:40–41  ·  view source on GitHub ↗
(l, sep=',')

Source from the content-addressed store, hash-verified

38 return maybe_list(itemgetter(0, 2)(arg.partition(':')))
39
40 def maybe_list(l, sep=','):
41 return l[0], l[1].split(sep) if sep in l[1] else l[1]
42
43 args = dict(simplearg(arg) for arg in ctx.args)
44 generic = 'generic' in args

Callers 15

test_maybe_listFunction · 0.85
stamp_linksMethod · 0.85
extend_list_optionMethod · 0.85
flatten_linksMethod · 0.85
unchain_tasksMethod · 0.85
prepare_stepsMethod · 0.85
link_errorMethod · 0.85
query_taskFunction · 0.85
revokeFunction · 0.85

Calls

no outgoing calls