]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] GH-125722: Remove Sphinx patches (GH-129277) (#129278)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 25 Jan 2025 03:55:36 +0000 (04:55 +0100)
committerGitHub <noreply@github.com>
Sat, 25 Jan 2025 03:55:36 +0000 (03:55 +0000)
GH-125722: Remove Sphinx patches (GH-129277)
(cherry picked from commit d40692db06cdae89447c26b6c1b5d2a682c0974f)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Doc/tools/extensions/pyspecific.py

index 9342e787d4bb67f417d6dde89ca64e91d7d3367a..3e4932988655d42b67d2ac8692529671305d0aea 100644 (file)
@@ -40,16 +40,6 @@ Body.enum.converters['loweralpha'] = \
     Body.enum.converters['lowerroman'] = \
     Body.enum.converters['upperroman'] = lambda x: None
 
-# monkey-patch the productionlist directive to allow hyphens in group names
-# https://github.com/sphinx-doc/sphinx/issues/11854
-from sphinx.domains import std
-
-std.token_re = re.compile(r'`((~?[\w-]*:)?\w+)`')
-
-# backport :no-index:
-PyModule.option_spec['no-index'] = directives.flag
-
-
 # Support for marking up and linking to bugs.python.org issues
 
 def issue_role(typ, rawtext, text, lineno, inliner, options={}, content=[]):