]> granicus.if.org Git - python/commitdiff
asyncio: Fix open_connection() documentation, writer is a StreamWriter
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 23 Jan 2014 09:20:18 +0000 (10:20 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 23 Jan 2014 09:20:18 +0000 (10:20 +0100)
Doc/library/asyncio-protocol.rst
Lib/asyncio/streams.py

index 4672e587765032a34f9544e9edfb81e476cdc9be..2ab168f3e203db56a1599d46f36a8d154514f4a8 100644 (file)
@@ -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
index f01f8629a7f055ef30696207313f5c333021f543..b1648e0dbe9523eea68767f90e12036a84249caa 100644 (file)
@@ -21,7 +21,7 @@ def open_connection(host=None, port=None, *,
     """A wrapper for create_connection() returning a (reader, writer) pair.
 
     The reader returned is a StreamReader instance; the writer is a
-    Transport.
+    StreamWriter.
 
     The arguments are all the usual arguments to create_connection()
     except protocol_factory; most common are positional host and port,