mirror of
https://github.com/python/cpython.git
synced 2025-08-17 07:11:51 +00:00
[3.12] gh-117928: Bump the minimum Sphinx version to 6.2.1 (GH-117853) (#118321)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
db474606f7
commit
ef12d239fa
6 changed files with 24 additions and 40 deletions
|
@ -19,7 +19,6 @@
|
|||
"""
|
||||
|
||||
from os import path
|
||||
import docutils
|
||||
from docutils import nodes
|
||||
from docutils.parsers.rst import directives
|
||||
from docutils.parsers.rst import Directive
|
||||
|
@ -40,16 +39,6 @@ REST_ROLE_MAP = {
|
|||
}
|
||||
|
||||
|
||||
# Monkeypatch nodes.Node.findall for forwards compatability
|
||||
# This patch can be dropped when the minimum Sphinx version is 4.4.0
|
||||
# or the minimum Docutils version is 0.18.1.
|
||||
if docutils.__version_info__ < (0, 18, 1):
|
||||
def findall(self, *args, **kwargs):
|
||||
return iter(self.traverse(*args, **kwargs))
|
||||
|
||||
nodes.Node.findall = findall
|
||||
|
||||
|
||||
class RCEntry:
|
||||
def __init__(self, name):
|
||||
self.name = name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue