3 ms·
I think you want textwrap.dedent https://docs.python.org/3/library/textwrap.html#textwrap.dedent https://docs.python.org/3/library/textwrap.html#textwrap.ded..
by Spivak 5y ago
I think you want textwrap.dedent
https://docs.python.org/3/library/textwrap.html#textwrap.dedent https://docs.python.org/3/library/textwrap.html#textwrap.ded...
or inspect.cleandoc.
https://docs.python.org/3.8/library/inspect.html#inspect.cleandoc https://docs.python.org/3.8/library/inspect.html#inspect.cle...
- deleted 5y ago[deleted]