def commit(self, frame):
if not frame.transaction:<EOL><INDENT>raise ProtocolError("<STR_LIT>")<EOL><DEDENT>if not frame.transaction in self.engine.transactions:<EOL><INDENT>raise ProtocolError("<STR_LIT>" % frame.transaction)<EOL><DEDENT>for tframe in self.engine.transactions[frame.transaction]:<EOL><INDENT>del tframe.headers['<STR_LIT>']<EOL>self.process_frame(tframe)<EOL><DEDENT>self.engine.queue_manager.clear_transaction_frames(<EOL>self.engine.connection, frame.transaction)<EOL>del self.engine.transactions[frame.transaction]<EOL>
Handles COMMIT command: Commits specified transaction.