(self, amt)
return data
Read the number of bytes requested.

        This function should be used when <amt> bytes "should" be present for
        reading. If the bytes are truly not available (due to EOF), then the
        IncompleteRead exception can be used to detect the problem.
Read the number of bytes requested.
Read the number of bytes requested .
def _safe_read(self, amt):
        """Read the number of bytes requested.

        This function should be used when <amt> bytes "should" be present for
        reading. If the bytes are truly not available (due to EOF), then the
        IncompleteRead exception can be used to detect the problem.
        """
        data = self.fp.read(amt)
        if len(data) < amt:
            raise IncompleteRead(data, amt-len(data))
        return data
def _safe_read ( self , amt ) : data = self . fp . read ( amt ) if len ( data ) < amt : raise IncompleteRead ( data , amt - len ( data ) ) return data