def confirm_select(self, nowait=False):
args = AMQPWriter()<EOL>args.write_bit(nowait)<EOL>self._send_method((<NUM_LIT>, <NUM_LIT:10>), args)<EOL>if not nowait:<EOL><INDENT>self.wait(allowed_methods=[<EOL>(<NUM_LIT>, <NUM_LIT:11>),  <EOL>])<EOL><DEDENT>
Enables publisher confirms for this channel (an RabbitMQ
        extension).

        Can now be used if the channel is in transactional mode.

        :param nowait:
            If set, the server will not respond to the method.
            The client should not wait for a reply method. If the
            server could not complete the method it will raise a channel
            or connection exception.