def resolve_relative_name(self, pagename, referrer):
        """Resolves a pagename relative to a referrer pagename."""
        if pagename.startswith(('./', '../')) or ('.', '..') in pagename:
            return self._resolve_relative_name(pagename, referrer)
        return pagename

    # IWikiSyntaxProvider methods
dataset/ETHPy150Open edgewall/trac/trac/wiki/api.py/WikiSystem.resolve_relative_name/swapped operands of `in`