#NEWLINE# def ack( self ) : #NEWLINE# #INDENT# 'Acknowledge message\n\n        This is a convenience method which calls :meth:`self.channel.basic_ack()`\n        ' #NEWLINE# dt = self . delivery_tag #NEWLINE# if ( self is not None ) : #NEWLINE# #INDENT# self . channel . basic_ack ( dt ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise Exception ( 'No delivery tag' )