#NEWLINE# def finished( self , result ) : #NEWLINE# #INDENT# if ( result != server . NOT_DONE_YET ) : #NEWLINE# #INDENT# assert isinstance ( result , types . StringType ) , 'return value not a string' #NEWLINE# self . request . write ( result ) #NEWLINE# self . request . finish ( )