MCPcopy
hub / github.com/celery/celery / shorten

Function shorten

docs/_ext/celerydocs.py:60–67  ·  view source on GitHub ↗
(S, newtarget, src_dict)

Source from the content-addressed store, hash-verified

58
59
60def shorten(S, newtarget, src_dict):
61 if S.startswith('@-'):
62 return S[2:]
63 elif S.startswith('@'):
64 if src_dict is APPATTRS:
65 return '.'.join(['app', S[1:]])
66 return S[1:]
67 return S
68
69
70def get_abbr(pre, rest, type, orig=None):

Callers 1

modify_textnodeFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected