MCPcopy Create free account
hub / github.com/celery/celery / label

Method label

celery/bootsteps.py:50–55  ·  view source on GitHub ↗
(self, step)

Source from the content-addressed store, hash-verified

48 }
49
50 def label(self, step):
51 return step and '{}{}'.format(
52 self._get_prefix(step),
53 bytes_to_str(
54 (step.label or _label(step)).encode('utf-8', 'ignore')),
55 )
56
57 def _get_prefix(self, step):
58 if step.last:

Callers

nothing calls this directly

Calls 4

_get_prefixMethod · 0.95
_labelFunction · 0.85
formatMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected