Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e170ed27
Commit
e170ed27
authored
Feb 17, 2015
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asyncio doc: fix the sphinx extension for coroutine commands
parent
4088ad9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
Doc/tools/extensions/pyspecific.py
Doc/tools/extensions/pyspecific.py
+0
-5
No files found.
Doc/tools/extensions/pyspecific.py
View file @
e170ed27
...
@@ -148,17 +148,12 @@ class PyDecoratorMethod(PyDecoratorMixin, PyClassmember):
...
@@ -148,17 +148,12 @@ class PyDecoratorMethod(PyDecoratorMixin, PyClassmember):
class
PyCoroutineMixin
(
object
):
class
PyCoroutineMixin
(
object
):
def
handle_signature
(
self
,
sig
,
signode
):
def
handle_signature
(
self
,
sig
,
signode
):
ret
=
super
(
PyCoroutineMixin
,
self
).
handle_signature
(
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 '
))
signode
.
insert
(
0
,
addnodes
.
desc_annotation
(
'coroutine '
,
'coroutine '
))
return
ret
return
ret
def
needs_arglist
(
self
):
return
False
class
PyCoroutineFunction
(
PyCoroutineMixin
,
PyModulelevel
):
class
PyCoroutineFunction
(
PyCoroutineMixin
,
PyModulelevel
):
def
run
(
self
):
def
run
(
self
):
# a decorator function is a function after all
self
.
name
=
'py:function'
self
.
name
=
'py:function'
return
PyModulelevel
.
run
(
self
)
return
PyModulelevel
.
run
(
self
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment