victor.stinner
2014-10-12 22:56:12 UTC
https://hg.python.org/cpython/rev/a66c05e1cea4
changeset: 93015:a66c05e1cea4
branch: 3.4
parent: 93013:1f649b8cf69a
user: Victor Stinner <victor.stinner at gmail.com>
date: Mon Oct 13 00:55:50 2014 +0200
summary:
asyncio: add missing @coroutine decorator
files:
Doc/library/asyncio-stream.rst | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Doc/library/asyncio-stream.rst b/Doc/library/asyncio-stream.rst
--- a/Doc/library/asyncio-stream.rst
+++ b/Doc/library/asyncio-stream.rst
@@ -250,6 +250,7 @@
import asyncio
+ @asyncio.coroutine
def tcp_echo_client(message, loop):
reader, writer = yield from asyncio.open_connection('127.0.0.1', 8888,
loop=loop)
@@ -379,6 +380,7 @@
except ImportError:
from asyncio.windows_utils import socketpair
+ @asyncio.coroutine
def wait_for_data(loop):
# Create a pair of connected sockets
rsock, wsock = socketpair()
changeset: 93015:a66c05e1cea4
branch: 3.4
parent: 93013:1f649b8cf69a
user: Victor Stinner <victor.stinner at gmail.com>
date: Mon Oct 13 00:55:50 2014 +0200
summary:
asyncio: add missing @coroutine decorator
files:
Doc/library/asyncio-stream.rst | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Doc/library/asyncio-stream.rst b/Doc/library/asyncio-stream.rst
--- a/Doc/library/asyncio-stream.rst
+++ b/Doc/library/asyncio-stream.rst
@@ -250,6 +250,7 @@
import asyncio
+ @asyncio.coroutine
def tcp_echo_client(message, loop):
reader, writer = yield from asyncio.open_connection('127.0.0.1', 8888,
loop=loop)
@@ -379,6 +380,7 @@
except ImportError:
from asyncio.windows_utils import socketpair
+ @asyncio.coroutine
def wait_for_data(loop):
# Create a pair of connected sockets
rsock, wsock = socketpair()
--
Repository URL: https://hg.python.org/cpython
Repository URL: https://hg.python.org/cpython