]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-125722: Remove Sphinx patches (#129277)
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>
Sat, 25 Jan 2025 03:47:55 +0000 (03:47 +0000)
committerGitHub <noreply@github.com>
Sat, 25 Jan 2025 03:47:55 +0000 (03:47 +0000)
Doc/tools/extensions/pyspecific.py

index eafab3b5f971336b5345498c602d375425d384a0..10d3aa6963de5a90e7fc5f4305f64afe7aafd4e7 100644 (file)
@@ -34,16 +34,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=[]):