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
d6dc7bda
Commit
d6dc7bda
authored
Mar 18, 2015
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #23456: Add missing @coroutine decorators in asyncio
parent
d55436ac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
Lib/asyncio/base_subprocess.py
Lib/asyncio/base_subprocess.py
+1
-0
Lib/asyncio/locks.py
Lib/asyncio/locks.py
+3
-0
Lib/asyncio/streams.py
Lib/asyncio/streams.py
+1
-0
No files found.
Lib/asyncio/base_subprocess.py
View file @
d6dc7bda
...
...
@@ -211,6 +211,7 @@ class BaseSubprocessTransport(transports.SubprocessTransport):
waiter
.
set_result
(
returncode
)
self
.
_exit_waiters
=
None
@
coroutine
def
_wait
(
self
):
"""Wait until the process exit and return the process return code.
...
...
Lib/asyncio/locks.py
View file @
d6dc7bda
...
...
@@ -162,6 +162,7 @@ class Lock:
# always raises; that's how the with-statement works.
pass
@
coroutine
def
__iter__
(
self
):
# This is not a coroutine. It is meant to enable the idiom:
#
...
...
@@ -362,6 +363,7 @@ class Condition:
def
__exit__
(
self
,
*
args
):
pass
@
coroutine
def
__iter__
(
self
):
# See comment in Lock.__iter__().
yield
from
self
.
acquire
()
...
...
@@ -446,6 +448,7 @@ class Semaphore:
def
__exit__
(
self
,
*
args
):
pass
@
coroutine
def
__iter__
(
self
):
# See comment in Lock.__iter__().
yield
from
self
.
acquire
()
...
...
Lib/asyncio/streams.py
View file @
d6dc7bda
...
...
@@ -378,6 +378,7 @@ class StreamReader:
else
:
self
.
_paused
=
True
@
coroutine
def
_wait_for_data
(
self
,
func_name
):
"""Wait until feed_data() or feed_eof() is called."""
# StreamReader uses a future to link the protocol feed_data() method
...
...
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