bpo-42579: Make workaround for various versions of Sphinx more robust by mcepl · Pull Request #23662 · python/cpython

mcepl · GitHub

GitHub CopilotWrite better code with AI | MCP RegistryIntegrate external tools | ActionsAutomate any workflow | CodespacesInstant dev environments | IssuesPlan and track work | Code ReviewManage code changes | Code QualityEnforce quality at merge | Why GitHub | Marketplace | View all features | Enterprises | Small and medium teams | Startups | View all use cases | View all industries | View all solutions | AI | Software Development | DevOps | Security | View all topics | Customer stories | Events & webinars | Ebooks & reports | Business insights | Trust center | Partners | View all resources

Expand Up @@ -394,7 +394,12 @@ def run(self): translatable=False) node.append(para) env = self.state.document.settings.env env.get_domain('changeset').note_changeset(node) # new method if hasattr(env, 'get_domain'): env.get_domain('changeset').note_changeset(node) # deprecated pre-Sphinx-2 method else: env.note_versionchange('deprecated', version[0], node, self.lineno) return [node] + messages

Expand Down

1 1