#NEWLINE# def __get__( self , instance , owner ) : #NEWLINE# #INDENT# if ( instance is None ) : #NEWLINE# #INDENT# return self . _class_doc #NEWLINE# #UNINDENT# exc = instance . exc #NEWLINE# try : #NEWLINE# #INDENT# if isinstance ( exc , tuple ) : #NEWLINE# #INDENT# exc_name = ( '(%s)' % ', ' . join ( map ( attrgetter ( '__name__' ) , exc ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# exc_name = exc . __name__ #NEWLINE# #UNINDENT# return dedent ( '                A wrapper around {inst.func.__name__!r} that will except:\n                {exc}\n                and handle any exceptions with {inst.handler.__name__!r}.\n\n                Docs for {inst.func.__name__!r}:\n                {inst.func.__doc__}\n\n                Docs for {inst.handler.__name__!r}:\n                {inst.handler.__doc__}\n                ' ) . format ( inst = instance , exc = exc_name ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# return self . _class_doc