parameters: (self, text, prefix='    ')
return_statement: return '\n'.join(lines)
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 = [prefix + line for line in text.split('\n')]
          if lines: lines[-1] = lines[-1].rstrip()
          return '\n'.join(lines)
function_tokens: def indent ( self , text , prefix = '    ' ) : if not text : return '' lines = [ prefix + line for line in text . split ( '\n' ) ] if lines : lines [ - 1 ] = lines [ - 1 ] . rstrip ( ) return '\n' . join ( lines )