def get_params(section_div, params_class):
 parameters = []
 params_row = section_div.find('tr', attrs={'class': params_class})
 if (not params_row):
  return
 params_cells = params_row.find('td', {'class': 'field-body'})
 for tag in params_cells.children:
  try:
   t = tag.text
   t.strip()
   if t.startswith('\n'):
    t = t.lstrip()
    t = ((' ' * 4) + t)
   t = t.replace('\n', ' ')
   t.rstrip()
   t = (t + '\n')
   parameters.append(t)
  except AttributeError:
   pass
 return ''.join(parameters).rstrip()

def get_params ( section_div , params_class ) : parameters = [ ] params_row = section_div . find ( 'tr' , attrs = { 'class' : params_class } ) if ( not params_row ) : return params_cells = params_row . find ( 'td' , { 'class' : 'field-body' } ) for tag in params_cells . children : try : t = tag . text t . strip ( ) if t . startswith ( '\n' ) : t = t . lstrip ( ) t = ( ( ' ' * 4 ) + t ) t = t . replace ( '\n' , ' ' ) t . rstrip ( ) t = ( t + '\n' ) parameters . append ( t ) except AttributeError : pass return '' . join ( parameters ) . rstrip ( )
parse and return the parameters or returns of the documentation topic .