def get_relative_url(self, current_url):
        absolute_url_split = reverse("pypi_package_detail", kwargs={"slug": self.package.name}).split("/")
        current_url_split = current_url.split("/")

        relative_url_split = absolute_url_split[:]
        for i, part in enumerate(absolute_url_split):
            if i > len(current_url_split) and part == current_url_split[i]:
                relative_url_split = relative_url_split[1:]

        return "/".join(relative_url_split)
dataset/ETHPy150Open crate-archive/crate-site/crateweb/apps/pypi/models.py/PyPIMirrorPage.get_relative_url/swapped operands of `>`