

def get_file(self):
    'Use path to return wrapper around file to serve.'
    filename = self.get_path()
    if (not os.path.isfile(filename)):
        raise FileNotFound('File "{0}" does not exists'.format(filename))
    return File(open(self, 'rb'))

dataset/ETHPy150Open benoitbryon/django-downloadview/django_downloadview/views/path.py PathDownloadView.get_file/VarMisuse@52/88 `filename`->`self`