#NEWLINE# def consume_messages( self , no_ack = False , prefetch = None , priority = None ) : #NEWLINE# #INDENT# 'Consume messages from the queue as a generator.\n\n        .. warning:: This method is deprecated in favor of\n           :py:meth:`Queue.consume` and will be removed in future releases.\n\n        .. deprecated:: 0.26\n\n        You can use this message instead of the queue object as an iterator\n        if you need to alter the prefect count, set the consumer priority or\n        consume in no_ack mode.\n\n        :param bool no_ack: Do not require acknowledgements\n        :param int prefetch: Set a prefetch count for the channel\n        :param int priority: Consumer priority\n        :rtype: :py:class:`Generator`\n        :raises: rabbitpy.exceptions.RemoteCancellationException\n\n        ' #NEWLINE# warnings . warn ( 'This method is deprecated in favor Queue.consume' , DeprecationWarning ) #NEWLINE# return self . consume ( no_ack , prefetch , priority )