#NEWLINE# def abort( self , transaction , headers = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , **keyword_headers ) : #NEWLINE# #INDENT# '\n        Abort a transaction.\n\n        :param transaction: the identifier of the transaction\n        :param headers: a map of any additional headers the broker requires\n        :param keyword_headers: any additional headers the broker requires\n        ' #NEWLINE# assert ( transaction is not None ) , "'transaction' is required" #NEWLINE# headers = utils . merge_headers ( [ headers , keyword_headers ] ) #NEWLINE# headers [ HDR_TRANSACTION ] = transaction #NEWLINE# self . send_frame ( CMD_ABORT , headers )