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

Method __init__

celery/utils/objects.py:132–135  ·  view source on GitHub ↗
(self, keypath, doc=None)

Source from the content-addressed store, hash-verified

130 """
131
132 def __init__(self, keypath, doc=None):
133 path, _, self.key = keypath.rpartition('.')
134 self.path = path.split('.') if path else None
135 self.__doc__ = doc
136
137 def _path(self, obj):
138 return (reduce(lambda d, k: d[k], [obj] + self.path) if self.path

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected