<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def _flushBuffer(self, request):
        '''Flush any pending data from the buffer to the request'''
        assert request is self.requestSession.request
        self.requestSession.writeData(self.buffer)
        self.buffer = []