

def read(self, num_bytes=None):
    if (not self._is_read):
        content = self._storage._read(self._name)
        self.file = six.BytesIO(content)
        self._is_read = True
    if (num_bytes is None):
        data = self.file.read()
    else:
        data = self.file.read(num_bytes)
    if ('b' in self._mode):
        return data
    else:
        return force_text(data)

dataset/ETHPy150Open glasslion/django-qiniu-storage/qiniustorage/backends.py QiniuFile.read/original