Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e170ed2

Browse files
committed
asyncio doc: fix the sphinx extension for coroutine commands
1 parent 4088ad9 commit e170ed2

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

Doc/tools/extensions/pyspecific.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,17 +148,12 @@ def run(self):
148148
class PyCoroutineMixin(object):
149149
def handle_signature(self, sig, signode):
150150
ret = super(PyCoroutineMixin, self).handle_signature(sig, signode)
151-
# signode.insert(0, addnodes.desc_addname('coroutine ', 'coroutine '))
152151
signode.insert(0, addnodes.desc_annotation('coroutine ', 'coroutine '))
153152
return ret
154153

155-
def needs_arglist(self):
156-
return False
157-
158154

159155
class PyCoroutineFunction(PyCoroutineMixin, PyModulelevel):
160156
def run(self):
161-
# a decorator function is a function after all
162157
self.name = 'py:function'
163158
return PyModulelevel.run(self)
164159

0 commit comments

Comments
 (0)