def flush(self):<EOL>
address = self.remote_address<EOL>while len(self._batches) > <NUM_LIT:0>:<EOL><INDENT>self._socket.sendto(self._batches[<NUM_LIT:0>], address)<EOL>self._batches.popleft()<EOL><DEDENT>return self<EOL>
Send buffered metrics in batch requests