summaryrefslogtreecommitdiff
path: root/Lib/asyncio/events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-05-29 00:14:03 +0200
committerVictor Stinner <victor.stinner@gmail.com>2014-05-29 00:14:03 +0200
commit2a5ed14fa5957836855ff50632edba734a85077d (patch)
tree6d8db97355a7dda4ef13a917a9b754add8ddf523 /Lib/asyncio/events.py
parent2cc81c2902641c473d779857c7b5c9e871adc465 (diff)
downloadcpython-2a5ed14fa5957836855ff50632edba734a85077d.tar.gz
Issue #21454: Fix asyncio.BaseEventLoop.connect_read_pipe doc
The function sets the the pipe to non-blocking mode.
Diffstat (limited to 'Lib/asyncio/events.py')
-rw-r--r--Lib/asyncio/events.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py
index 31592d10b1..f0ad568052 100644
--- a/Lib/asyncio/events.py
+++ b/Lib/asyncio/events.py
@@ -257,11 +257,11 @@ class AbstractEventLoop:
# Pipes and subprocesses.
def connect_read_pipe(self, protocol_factory, pipe):
- """Register read pipe in event loop.
+ """Register read pipe in event loop. Set the pipe to non-blocking mode.
protocol_factory should instantiate object with Protocol interface.
- pipe is file-like object already switched to nonblocking.
- Return pair (transport, protocol), where transport support
+ pipe is a file-like object.
+ Return pair (transport, protocol), where transport supports the
ReadTransport interface."""
# The reason to accept file-like object instead of just file descriptor
# is: we need to own pipe and close it at transport finishing