

def download_source_file(self):
    '\n        Download the source file to a temporary file.\n        '
    self.wrapped_set_job_state('DOWNLOADING')
    file_uri = storage.job.source_path
    logger.debug(('BaseNommer.download_source_file(): Attempting to download %s' % file_uri))
    storage = get_backend_for_uri(file_uri)
    fobj = tempfile.NamedTemporaryFile(mode='w+b', delete=True)
    storage.download_file(file_uri, fobj)
    fobj.flush()
    os.fsync(fobj.fileno())
    logger.debug(('BaseNommer.download_source_file(): Downloaded %s to %s' % (file_uri, fobj.name)))
    return fobj

dataset/ETHPy150Open duointeractive/media-nommer/media_nommer/ec2nommerd/nommers/base_nommer.py BaseNommer.download_source_file/VarMisuse@21/53 `self`->`storage`