def _docstring_from_node(node):
 CLIP_LENGTH = 2000
 s = node.value
 s = s.lstrip('urb')
 if s.startswith('"""'):
  s = s[3:(-3)]
 elif s.startswith("'''"):
  s = s[3:(-3)]
 else:
  assert (s[0] in ('"', "'"))
  s = s[1:(-1)]
 return s[:CLIP_LENGTH]

def _docstring_from_node ( node ) : CLIP_LENGTH = 2000 s = node . value s = s . lstrip ( 'urb' ) if s . startswith ( '"""' ) : s = s [ 3 : ( - 3 ) ] elif s . startswith ( "'''" ) : s = s [ 3 : ( - 3 ) ] else : assert ( s [ 0 ] in ( '"' , "'" ) ) s = s [ 1 : ( - 1 ) ] return s [ : CLIP_LENGTH ]
return the docstring content for the given docstring node .