def process(self):
        self.config = self._find_config(self.path)
        self._project_name = None
        self._project_branch = None

        if self.config:

            try:
                with open(self.config, 'r', encoding='utf-8') as fh:
                    self._project_name = u(fh.readline().strip())
                    self._project_branch = u(fh.readline().strip())
            except UnicodeDecodeError:  # pragma: nocover
                try:
                    with open(self.config, 'r', encoding=sys.getfilesystemencoding()) as fh:
                        self._project_name = u(fh.readline().strip())
                        self._project_branch = u(fh.readline().strip())
                except:
                    log.traceback('warn')
            except __HOLE__:  # pragma: nocover
                log.traceback('warn')

            return True
        return False
dataset/ETHPy150Open wakatime/sublime-wakatime/packages/wakatime/projects/wakatime_project_file.py/WakaTimeProjectFile.process