def _update_doc(doc):
 from textwrap import wrap
 info_table = [(p, plugin_info(p).get('description', 'no description')) for p in available_plugins if (not (p == 'test'))]
 if (len(info_table) > 0):
  name_length = max([len(n) for (n, _) in info_table])
 else:
  name_length = 0
 description_length = ((WRAP_LEN - 1) - name_length)
 column_lengths = [name_length, description_length]
 _format_plugin_info_table(info_table, column_lengths)
 for (name, plugin_description) in info_table:
  description_lines = wrap(plugin_description, description_length)
  name_column = [name]
  name_column.extend(['' for _ in range((len(description_lines) - 1))])
  for (name, description) in zip(name_column, description_lines):
   doc += ('%s %s\n' % (name.ljust(name_length), description))
 doc = doc.strip()
 return doc

def _update_doc ( doc ) : from textwrap import wrap info_table = [ ( p , plugin_info ( p ) . get ( 'description' , 'no description' ) ) for p in available_plugins if ( not ( p == 'test' ) ) ] if ( len ( info_table ) > 0 ) : name_length = max ( [ len ( n ) for ( n , _ ) in info_table ] ) else : name_length = 0 description_length = ( ( WRAP_LEN - 1 ) - name_length ) column_lengths = [ name_length , description_length ] _format_plugin_info_table ( info_table , column_lengths ) for ( name , plugin_description ) in info_table : description_lines = wrap ( plugin_description , description_length ) name_column = [ name ] name_column . extend ( [ '' for _ in range ( ( len ( description_lines ) - 1 ) ) ] ) for ( name , description ) in zip ( name_column , description_lines ) : doc += ( '%s %s\n' % ( name . ljust ( name_length ) , description ) ) doc = doc . strip ( ) return doc
add a list of plugins to the module docstring .