def clearBuffer(self):
        """
        Clear any buffered data received from stdout. Should be private.
        """
        self.buffer = b''
        self._linesReceived = []
        self._lineBuffer = b''

        Clear any buffered data received from stdout. Should be private.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_cftp.py