def get_related_topics(section_div):
 related_topics = []
 try:
  seealso_div = section_div.find('div', attrs={'class': 'admonition seealso'})
  seealso_p = seealso_div.find('p', attrs={'class': 'last'})
  related_topics_a = seealso_p.find_all('a')
  for topic in related_topics_a:
   related_topics.append((('[[' + topic['title']) + ']]'))
 except AttributeError:
  pass
 return '\\\\n'.join(related_topics)

def get_related_topics ( section_div ) : related_topics = [ ] try : seealso_div = section_div . find ( 'div' , attrs = { 'class' : 'admonition seealso' } ) seealso_p = seealso_div . find ( 'p' , attrs = { 'class' : 'last' } ) related_topics_a = seealso_p . find_all ( 'a' ) for topic in related_topics_a : related_topics . append ( ( ( '[[' + topic [ 'title' ] ) + ']]' ) ) except AttributeError : pass return '\\\\n' . join ( related_topics )
get topics related to the current topic .