def noMoreData(self):
        """
        Verify that all data has been received.  If it has not been, raise
        L{_DataLoss}.
        """
        if self.state != 'FINISHED':
            raise _DataLoss(
                "Chunked decoder in %r state, still expecting more data to "
                "get to 'FINISHED' state." % (self.state,))

        Verify that all data has been received.  If it has not been, raise
        L{_DataLoss}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/http.py