MCPcopy
hub / github.com/celery/celery / dedent

Function dedent

celery/utils/text.py:40–42  ·  view source on GitHub ↗

Remove indentation.

(s: str, sep: str = '\n')

Source from the content-addressed store, hash-verified

38
39
40def dedent(s: str, sep: str = '\n') -> str:
41 """Remove indentation."""
42 return sep.join(dedent_initial(l) for l in s.splitlines())
43
44
45def fill_paragraphs(s: str, width: int, sep: str = '\n') -> str:

Callers 1

DOTClass · 0.85

Calls 2

dedent_initialFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected