#NEWLINE# def __str__( self ) : #NEWLINE# #INDENT# ' A nicely formatted representaion of the exception.\n\n        ' #NEWLINE# text = '\n\n' #NEWLINE# text += _format_source_error ( self . filename , text . context , self . lineno ) #NEWLINE# text += ( '\n\n%s: %s' % ( type ( self ) . __name__ , self . message ) ) #NEWLINE# return text