def cache_download(target_file, temp_location, content_type):
    logger.notify('Storing download in cache at %s' % display_path(target_file))
    shutil.copyfile(temp_location, target_file)
    fp = open(target_file+'.content-type', 'w')
    fp.write(content_type)
    fp.close()
    os.unlink(temp_location)
dataset/ETHPy150Open tschellenbach/Django-facebook/docs/docs_env/Lib/site-packages/pip-1.0-py2.5.egg/pip/util.py/cache_download/original