#NEWLINE# def __call__( self , f ) : #NEWLINE# #INDENT# @ wraps ( f ) #NEWLINE# def wrapper( * args , **kwargs ) : #NEWLINE# #INDENT# resp = f ( * args , ** kwargs ) #NEWLINE# if isinstance ( resp , tuple ) : #NEWLINE# #INDENT# ( data , code , headers ) = unpack ( resp ) #NEWLINE# return ( marshal ( data , self . fields , self . envelope ) , code , headers ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return marshal ( resp , self . fields , self . envelope ) #NEWLINE# #UNINDENT# #UNINDENT# return f