diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-02-17 22:08:35 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-02-17 22:08:35 (GMT) |
commit | e170ed27c61fb4c0fbb9db2e9c4c5de4965b4f46 (patch) | |
tree | d16d99fb9e60c4517388eec0cddc94d0fac29176 /Doc | |
parent | 4088ad9dcef0d7bbe26dc4a2527d4220ac558f53 (diff) | |
download | cpython-e170ed27c61fb4c0fbb9db2e9c4c5de4965b4f46.zip cpython-e170ed27c61fb4c0fbb9db2e9c4c5de4965b4f46.tar.gz cpython-e170ed27c61fb4c0fbb9db2e9c4c5de4965b4f46.tar.bz2 |
asyncio doc: fix the sphinx extension for coroutine commands
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/tools/extensions/pyspecific.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Doc/tools/extensions/pyspecific.py b/Doc/tools/extensions/pyspecific.py index 17b3c82..64a5665 100644 --- a/Doc/tools/extensions/pyspecific.py +++ b/Doc/tools/extensions/pyspecific.py @@ -148,17 +148,12 @@ class PyDecoratorMethod(PyDecoratorMixin, PyClassmember): class PyCoroutineMixin(object): def handle_signature(self, sig, signode): ret = super(PyCoroutineMixin, self).handle_signature(sig, signode) -# signode.insert(0, addnodes.desc_addname('coroutine ', 'coroutine ')) signode.insert(0, addnodes.desc_annotation('coroutine ', 'coroutine ')) return ret - def needs_arglist(self): - return False - class PyCoroutineFunction(PyCoroutineMixin, PyModulelevel): def run(self): - # a decorator function is a function after all self.name = 'py:function' return PyModulelevel.run(self) |