def _get_size(self):
        try:
            return self._size
        except AttributeError:
            try:
                self._size = self.file.size
            except __HOLE__:
                self._size = len(self.file.getvalue())
        return self._size
dataset/ETHPy150Open benoitbryon/django-downloadview/django_downloadview/files.py/VirtualFile._get_size