parameters: (doc)
return_statement: return '', '\n'.join(lines)
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 = doc.strip().split('\n')
      if len(lines) == 1:
          return lines[0], ''
      elif len(lines) >= 2 and not lines[1].rstrip():
          return lines[0], '\n'.join(lines[2:])
      return '', '\n'.join(lines)
function_tokens: def splitdoc ( doc ) : lines = doc . strip ( ) . split ( '\n' ) if len ( lines ) == 1 : return lines [ 0 ] , '' elif len ( lines ) >= 2 and not lines [ 1 ] . rstrip ( ) : return lines [ 0 ] , '\n' . join ( lines [ 2 : ] ) return '' , '\n' . join ( lines )