def transaction_stop(self):
if self.transaction_count > <NUM_LIT:0>:<EOL><INDENT>logger.debug("<STR_LIT>".format(self.transaction_count))<EOL>if self.transaction_count == <NUM_LIT:1>:<EOL><INDENT>self._transaction_stop()<EOL><DEDENT>self.transaction_count -= <NUM_LIT:1><EOL><DEDENT>return self.transaction_count<EOL>
stop/commit a transaction if ready