def whats_this_helper(desc, include_more_link=False):
 title = desc.name
 help_url = desc.help
 if (not help_url):
  help_url = ('help://search?' + urlencode({'id': desc.qualified_name}))
 description = desc.description
 template = ['<h3>{0}</h3>'.format(escape(title))]
 if description:
  template.append('<p>{0}</p>'.format(escape(description)))
 if (help_url and include_more_link):
  template.append("<a href='{0}'>more...</a>".format(escape(help_url)))
 return '\n'.join(template)

def whats_this_helper ( desc , include_more_link = False ) : title = desc . name help_url = desc . help if ( not help_url ) : help_url = ( 'help://search?' + urlencode ( { 'id' : desc . qualified_name } ) ) description = desc . description template = [ '<h3>{0}</h3>' . format ( escape ( title ) ) ] if description : template . append ( '<p>{0}</p>' . format ( escape ( description ) ) ) if ( help_url and include_more_link ) : template . append ( "<a href='{0}'>more...</a>" . format ( escape ( help_url ) ) ) return '\n' . join ( template )
a whats this text construction helper .