def _select_server(self, current_path=None):
        """Finds an existing server for the given path. If none is
        found, it creates one for the path.
        """
        v = sublime.active_window().active_view()
        repo_root = find_hg_root(current_path or v.file_name())
        if not repo_root:
            raise NoRepositoryFound()
        if not self.__dict__ in repo_root:
            server = self._start_server(repo_root)
            self.__dict__[repo_root] = server
        return self.__dict__[repo_root]
dataset/ETHPy150Open SublimeText/SublimeHg/shglib/utils.py/HgServers._select_server/swapped operands of `in`