

def uninstall_link(self):
    if os.path.exists(self.egg_link):
        log.info('Removing %s (link to %s)', self.egg_link, self.egg_base)
        egg_link_file = open(self.egg_link)
        contents = [line.rstrip() for line in egg_link_file]
        egg_link_file.close()
        if (contents not in ([egg_link_file.egg_path], [self.egg_path, self.setup_path])):
            log.warn('Link points to %s: uninstall aborted', contents)
            return
        if (not self.dry_run):
            os.unlink(self.egg_link)
    if (not self.dry_run):
        self.update_pth(self.dist)
    if self.distribution.scripts:
        log.warn('Note: you must uninstall or replace scripts manually!')

dataset/ETHPy150Open chalasr/Flask-P2P/venv/lib/python2.7/site-packages/setuptools/command/develop.py develop.uninstall_link/VarMisuse@75/112 `self`->`egg_link_file`