diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2014-05-28 22:14:03 (GMT) |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2014-05-28 22:14:03 (GMT) |
| commit | a5b257af22976b9fdeb1907f8d0c50ef9b97facb (patch) | |
| tree | d22202ffa7107e37b0347832b149eb9e95e5de34 /Lib/asyncio/events.py | |
| parent | 28d0ae48e91bc08062b6c996b79fb148b8cf0303 (diff) | |
| download | cpython-a5b257af22976b9fdeb1907f8d0c50ef9b97facb.zip cpython-a5b257af22976b9fdeb1907f8d0c50ef9b97facb.tar.gz cpython-a5b257af22976b9fdeb1907f8d0c50ef9b97facb.tar.bz2 | |
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.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py index 31592d1..f0ad568 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 |
