MCPcopy
hub / github.com/celery/celery / old_repr

Function old_repr

t/unit/utils/test_saferepr.py:54–67  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

52
53
54def old_repr(s):
55 return str(RE_LONG_SUFFIX.sub(
56 r'\1',
57 RE_EMPTY_SET_REPR.sub(
58 RE_EMPTY_SET_REPR_REPLACE,
59 RE_OLD_SET_REPR.sub(
60 RE_OLD_SET_REPR_REPLACE,
61 RE_OLD_SET_CUSTOM_REPR.sub(
62 RE_OLD_SET_CUSTOM_REPR_REPLACE,
63 repr(s).replace("u'", "'"),
64 )
65 ),
66 ),
67 )).replace('set([])', 'set()')
68
69
70class list2(list):

Callers 6

test_safe_typesMethod · 0.85
test_numbers_dictMethod · 0.85
test_numbers_listMethod · 0.85
test_numbers_keysMethod · 0.85
test_textMethod · 0.85
test_same_as_reprMethod · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected