MCPcopy
hub / github.com/celery/celery / _repr

Function _repr

celery/utils/saferepr.py:149–155  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

147
148
149def _repr(obj):
150 # type: (Any) -> str
151 try:
152 return repr(obj)
153 except Exception as exc:
154 stack = '\n'.join(traceback.format_stack())
155 return f'<Unrepresentable {type(obj)!r}{id(obj):#x}: {exc!r} {stack!r}>'
156
157
158def _saferepr(o, maxlen=None, maxlevels=3, seen=None):

Callers 1

reprstreamFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected