parameters: (doc)
return_statement: return '', join(lines, '\n')
docstring: Split a doc string into a synopsis line (if any) and the rest.
docstring_summary: Split a doc string into a synopsis line (if any) and the rest.
docstring_tokens: Split a doc string into a synopsis line ( if any ) and the rest .
function: def splitdoc(doc):
      """Split a doc string into a synopsis line (if any) and the rest."""
      lines = split(strip(doc), '\n')
      if len(lines) == 1:
          return lines[0], ''
      elif len(lines) >= 2 and not rstrip(lines[1]):
          return lines[0], join(lines[2:], '\n')
      return '', join(lines, '\n')
function_tokens: def splitdoc ( doc ) : lines = split ( strip ( doc ) , '\n' ) if len ( lines ) == 1 : return lines [ 0 ] , '' elif len ( lines ) >= 2 and not rstrip ( lines [ 1 ] ) : return lines [ 0 ] , join ( lines [ 2 : ] , '\n' ) return '' , join ( lines , '\n' )