parameters: (self, text, prefix='    ')
return_statement: return join(lines, '\n')
docstring: Indent text by prepending a given prefix to each line.
docstring_summary: Indent text by prepending a given prefix to each line.
docstring_tokens: Indent text by prepending a given prefix to each line .
function: def indent(self, text, prefix='    '):
          """Indent text by prepending a given prefix to each line."""
          if not text: return ''
          lines = split(text, '\n')
          lines = map(lambda line, prefix=prefix: prefix + line, lines)
          if lines: lines[-1] = rstrip(lines[-1])
          return join(lines, '\n')
function_tokens: def indent ( self , text , prefix = '    ' ) : if not text : return '' lines = split ( text , '\n' ) lines = map ( lambda line , prefix = prefix : prefix + line , lines ) if lines : lines [ - 1 ] = rstrip ( lines [ - 1 ] ) return join ( lines , '\n' )