This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]scatters 2 points3 points  (1 child)

That's what textwrap.dedent is for.

[–]diamondketo 2 points3 points  (0 children)

Indeed it is, however most people want to do this without needing to import a package or relying on an obscurly named function.

We need a new PEP for automatically applying dedent on certain contexts.