(self)
return io
Read everything into a temporary file and call the progress
        callbacks if the file length is defined, or just reads till EOF
Read everything into a temporary file and call the progress
        callbacks if the file length is defined, or just reads till EOF
Read everything into a temporary file and call the progress callbacks if the file length is defined or just reads till EOF
def _get_file(self):
        """Read everything into a temporary file and call the progress
        callbacks if the file length is defined, or just reads till EOF"""
        if self.length:
            io = _smart_read(self.file_obj, self.length,
                bufferSize=self.bufferSize, 
                progressCallback=self.progressCallback)
            io.seek(0, 0)
        else:
            # Read everuthing - no callbacks involved
            io = _smart_total_read(self.file_obj, bufferSize=self.bufferSize)
        io.seek(0, 0)
        return io
def _get_file ( self ) : if self . length : io = _smart_read ( self . file_obj , self . length , bufferSize = self . bufferSize , progressCallback = self . progressCallback ) io . seek ( 0 , 0 ) else : # Read everuthing - no callbacks involved io = _smart_total_read ( self . file_obj , bufferSize = self . bufferSize ) io . seek ( 0 , 0 ) return io