pydoc.TextDoc.indent

TextDoc.indent(text, prefix=' ')[source]

Indent text by prepending a given prefix to each line.