mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
GH-121970: Remove Docutils list monkeypatch (#142056)
This commit is contained in:
parent
cfcd52490d
commit
3c117380ab
5 changed files with 26 additions and 34 deletions
|
|
@ -24,14 +24,6 @@
|
|||
# Used in conf.py and updated here by python/release-tools/run_release.py
|
||||
SOURCE_URI = 'https://github.com/python/cpython/tree/main/%s'
|
||||
|
||||
# monkey-patch reST parser to disable alphabetic and roman enumerated lists
|
||||
from docutils.parsers.rst.states import Body
|
||||
Body.enum.converters['loweralpha'] = \
|
||||
Body.enum.converters['upperalpha'] = \
|
||||
Body.enum.converters['lowerroman'] = \
|
||||
Body.enum.converters['upperroman'] = lambda x: None
|
||||
|
||||
|
||||
class PyAwaitableMixin(object):
|
||||
def handle_signature(self, sig, signode):
|
||||
ret = super(PyAwaitableMixin, self).handle_signature(sig, signode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue