#NEWLINE# def _maybe_run_close_callback( self ) : #NEWLINE# #INDENT# if ( self . closed ( ) and self . _close_callback and ( self . _pending_callbacks == 0 ) ) : #NEWLINE# #INDENT# cb = self . _close_callback #NEWLINE# self . _close_callback = None #NEWLINE# self . _run_callback ( cb ) #NEWLINE# self . _read_callback = self . _write_callback = None