def remove(self):
        logger.debug('Removing pth entries from %s:', self.file)
        with open(self.file, 'rb') as fh:
            # windows uses '\r\n' with py3k, but uses '\n' with py2.x
            lines = fh.readlines()
            self._saved_lines = lines
        if any(b'\r\n' in line for line in lines):
            endline = '\r\n'
        else:
            endline = '\n'
        for entry in self.entries:
            try:
                logger.debug('Removing entry: %s', entry)
                lines.remove((entry + endline).encode("utf-8"))
            except __HOLE__:
                pass
        with open(self.file, 'wb') as fh:
            fh.writelines(lines)
dataset/ETHPy150Open anzev/hedwig/build/pip/pip/req/req_uninstall.py/UninstallPthEntries.remove