#NEWLINE# def __getattr__( self , name ) : #NEWLINE# #INDENT# obj = self . __getattribute__ ( '_wrapped' ) #NEWLINE# exceptions = self . __getattribute__ ( '_exceptions' ) #NEWLINE# if ( ( obj is None ) or ( name in exceptions ) ) : #NEWLINE# #INDENT# self . __getattribute__ ( name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# attr = getattr ( obj , name ) #NEWLINE# if isinstance ( obj , MethodType ) : #NEWLINE# #INDENT# return new . instancemethod ( attr . im_func , self , obj . __class__ ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return attr #NEWLINE# #UNINDENT# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# raise AttributeError ( ( "'%s' object has no attribute '%s'" % ( self . __class__ . __name__ , name ) ) )