]> granicus.if.org Git - python/commitdiff
bpo-32251: Fix docs (#5408)
authorYury Selivanov <yury@magic.io>
Mon, 29 Jan 2018 04:51:08 +0000 (23:51 -0500)
committerGitHub <noreply@github.com>
Mon, 29 Jan 2018 04:51:08 +0000 (23:51 -0500)
Doc/library/asyncio-protocol.rst
Lib/asyncio/protocols.py

index a08c4d379b688154538d7173fc4acce3bf06b2b0..004cac80d90c2cc6d330be7beb34174f603ef17e 100644 (file)
@@ -451,7 +451,7 @@ Streaming protocols with manual receive buffer control
 
 .. versionadded:: 3.7
    **Important:** :class:`BufferedProtocol` has been been added to
-   asyncio in Python 3.7 *on a provisional basis*!  Treat it as an
+   asyncio in Python 3.7 *on a provisional basis*!  Consider it as an
    experimental API that might be changed or removed in Python 3.8.
 
 
@@ -487,7 +487,8 @@ instances:
 
 :meth:`get_buffer` can be called an arbitrary number of times during
 a connection.  However, :meth:`eof_received` is called at most once
-and, if called, :meth:`data_received` won't be called after it.
+and, if called, :meth:`get_buffer` and :meth:`buffer_updated`
+won't be called after it.
 
 State machine:
 
index 9e786dcfbbe54129d61581aaa93a82fe520a8938..8904478f1ab28d0647a73de5d5430370535f7fa9 100644 (file)
@@ -106,7 +106,7 @@ class BufferedProtocol(BaseProtocol):
     """Interface for stream protocol with manual buffer control.
 
     Important: this has been been added to asyncio in Python 3.7
-    *on a provisional basis*!  Treat it as an experimental API that
+    *on a provisional basis*!  Consider it as an experimental API that
     might be changed or removed in Python 3.8.
 
     Event methods, such as `create_server` and `create_connection`,