def get_scale_docs():
 docs = []
 for name in get_scale_names():
  scale_class = _scale_mapping[name]
  docs.append(("    '%s'" % name))
  docs.append('')
  class_docs = dedent(scale_class.__init__.__doc__)
  class_docs = ''.join([('        %s\n' % x) for x in class_docs.split('\n')])
  docs.append(class_docs)
  docs.append('')
 return '\n'.join(docs)

def get_scale_docs ( ) : docs = [ ] for name in get_scale_names ( ) : scale_class = _scale_mapping [ name ] docs . append ( ( "    '%s'" % name ) ) docs . append ( '' ) class_docs = dedent ( scale_class . __init__ . __doc__ ) class_docs = '' . join ( [ ( '        %s\n' % x ) for x in class_docs . split ( '\n' ) ] ) docs . append ( class_docs ) docs . append ( '' ) return '\n' . join ( docs )
helper function for generating docstrings related to scales .