(self, n)
return data
Read exactly *n* bytes from `self._fp`

        This method is required because self._fp may be unbuffered,
        i.e. return short reads.
Read exactly *n* bytes from `self._fp`
Read exactly * n * bytes from self . _fp
def _read_exact(self, n):
        '''Read exactly *n* bytes from `self._fp`

        This method is required because self._fp may be unbuffered,
        i.e. return short reads.
        '''

        data = self._fp.read(n)
        while len(data) < n:
            b = self._fp.read(n - len(data))
            if not b:
                raise EOFError("Compressed file ended before the "
                               "end-of-stream marker was reached")
            data += b
        return data
def _read_exact ( self , n ) : data = self . _fp . read ( n ) while len ( data ) < n : b = self . _fp . read ( n - len ( data ) ) if not b : raise EOFError ( "Compressed file ended before the " "end-of-stream marker was reached" ) data += b return data