def get_project(self, src, raises=False):
        """ Get a project

        :param src: a absolute path, or a path relative to the worktree
        :param raises: Raises if project is not found
        :returns:  a :py:class:`.WorkTreeProject` instance or None if raises is
            False and project is not found

        """
        src = self.normalize_path(src)
        if not self.has_project(src):
            if not raises:
                return None
            mess  = ui.did_you_mean(src % "No project in '%s'\n",
                                    src, [x.src for x in self.projects])
            raise WorkTreeError(mess)
        match = (p for p in self.projects if p.src == src)
        return match.next()
dataset/ETHPy150Open aldebaran/qibuild/python/qisys/worktree.py/WorkTree.get_project/swapped operands of `%`