diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-01-23 09:20:18 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-01-23 09:20:18 (GMT) |
commit | 3eb45d3eaed3448f9a67ee7936132c464b146178 (patch) | |
tree | 238777df824c7ced7cc1405a66ff6dc7636d92af /Doc | |
parent | d869a0b132308e600534cc56d6e11f63e0c85eda (diff) | |
download | cpython-3eb45d3eaed3448f9a67ee7936132c464b146178.zip cpython-3eb45d3eaed3448f9a67ee7936132c464b146178.tar.gz cpython-3eb45d3eaed3448f9a67ee7936132c464b146178.tar.bz2 |
asyncio: Fix open_connection() documentation, writer is a StreamWriter
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/asyncio-protocol.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/asyncio-protocol.rst b/Doc/library/asyncio-protocol.rst index 4672e58..2ab168f 100644 --- a/Doc/library/asyncio-protocol.rst +++ b/Doc/library/asyncio-protocol.rst @@ -535,8 +535,8 @@ Network functions A wrapper for :meth:`~BaseEventLoop.create_connection()` returning a (reader, writer) pair. - The reader returned is a :class:`StreamReader` instance; the writer is a - transport. + The reader returned is a :class:`StreamReader` instance; the writer is + a :class:`StreamWriter` instance. The arguments are all the usual arguments to :meth:`BaseEventLoop.create_connection` except *protocol_factory*; most @@ -545,7 +545,7 @@ Network functions Additional optional keyword arguments are *loop* (to set the event loop instance to use) and *limit* (to set the buffer limit passed to the - StreamReader). + :class:`StreamReader`). (If you want to customize the :class:`StreamReader` and/or :class:`StreamReaderProtocol` classes, just copy the code -- there's really |