[Python-checkins] cpython (3.4): asyncio doc: fix the sphinx extension for coroutine commands

victor.stinner python-checkins at python.org
Tue Feb 17 23:14:21 CET 2015


https://hg.python.org/cpython/rev/73253aead830
changeset: 94667:73253aead830
branch: 3.4
parent: 94665:0f6ddf944521
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Feb 17 23:08:35 2015 +0100
summary:
 asyncio doc: fix the sphinx extension for coroutine commands
files:
 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
--- a/Doc/tools/extensions/pyspecific.py
+++ b/Doc/tools/extensions/pyspecific.py
@@ -148,17 +148,12 @@
 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)
 
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /