#NEWLINE# def handles_write( self , fd , callback ) : #NEWLINE# #INDENT# ' Return whether or the given write callback is active for the given file descriptor. ' #NEWLINE# return ( callback in self . handlers [ fd ] [ 'write' ] )