def dump(self, msg):
msg_size = len(msg)<EOL>if self._batch_size + msg_size > self._max_batch_file_sizeand self._batch_size > <NUM_LIT:0>:<EOL><INDENT>self._startNewBatch()<EOL><DEDENT>global getTime<EOL>index_file_entry = '<STR_LIT>'.format(<EOL>getTime(), self._batch_index, self._batch_size, msg_size)<EOL>if sys.version_info >= (<NUM_LIT:3>,):<EOL><INDENT>self._index_file.write(index_file_entry.encode('<STR_LIT:utf-8>'))<EOL><DEDENT>else:<EOL><INDENT>self._index_file.write(index_file_entry)<EOL><DEDENT>self._batch_file.write(msg)<EOL>self._batch_size += msg_size<EOL>self._message_count += <NUM_LIT:1><EOL>
Dumps the provided message to this dump.