#NEWLINE# def __repr__( self ) : #NEWLINE# #INDENT# s = [ ] #NEWLINE# for l in sorted ( self , key = ( lambda x : x . __name__ ) ) : #NEWLINE# #INDENT# if l . __doc__ : #NEWLINE# #INDENT# doc = l . __doc__ . split ( '\n' ) [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# doc = '--' #NEWLINE# #UNINDENT# s . append ( ( '%-20s: %s' % ( l . __name__ , doc ) ) ) #NEWLINE# #UNINDENT# return '\n' . join ( s )