def _publish_confirm(self, frames_out):
        """Confirm that message was published successfully.

        :param list frames_out:

        :rtype: bool
        """
        confirm_uuid = self._channel.rpc.register_request(['Basic.Ack',
                                                           'Basic.Nack'])
        self._channel.write_frames(frames_out)
        result = self._channel.rpc.get_request(confirm_uuid, raw=True)
        self._channel.check_for_errors()
        if isinstance(result, specification.Basic.Ack):
            return True
        return False
def _publish_confirm ( self , frames_out ) : confirm_uuid = self . _channel . rpc . register_request ( [ 'Basic.Ack' , 'Basic.Nack' ] ) self . _channel . write_frames ( frames_out ) result = self . _channel . rpc . get_request ( confirm_uuid , raw = True ) self . _channel . check_for_errors ( ) if isinstance ( result , specification . Basic . Ack ) : return True return False
Confirm that message was published successfully.

        :param list frames_out:

        :rtype: bool