Skip to content

Commit

Permalink
[3.12] GH-125722: Remove Sphinx patches (GH-129277) (#129279)
Browse files Browse the repository at this point in the history
GH-125722: Remove Sphinx patches (GH-129277)
(cherry picked from commit d40692d)

Co-authored-by: Adam Turner <[email protected]>
  • Loading branch information
miss-islington and AA-Turner authored Jan 25, 2025
1 parent e94939c commit 9c44e4f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Doc/tools/extensions/pyspecific.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,6 @@
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=[]):
Expand Down

0 comments on commit 9c44e4f

Please sign in to comment.