@@ -43,7 +43,7 @@ def close(self):
4343
4444 async def wait_closed (self ):
4545 """Wait for the stream to close.
46-
46+
4747 This is a coroutine.
4848 """
4949
@@ -52,7 +52,7 @@ async def wait_closed(self):
5252
5353 async def read (self , n ):
5454 """Read up to *n* bytes and return them.
55-
55+
5656 This is a coroutine.
5757 """
5858
@@ -61,9 +61,9 @@ async def read(self, n):
6161
6262 async def readinto (self , buf ):
6363 """Read up to n bytes into *buf* with n being equal to the length of *buf*
64-
64+
6565 Return the number of bytes read into *buf*
66-
66+
6767 This is a coroutine, and a MicroPython extension.
6868 """
6969
@@ -72,7 +72,7 @@ async def readinto(self, buf):
7272
7373 async def readexactly (self , n ):
7474 """Read exactly *n* bytes and return them as a bytes object.
75-
75+
7676 Raises an ``EOFError`` exception if the stream ends before reading
7777 *n* bytes.
7878
@@ -92,7 +92,7 @@ async def readexactly(self, n):
9292
9393 async def readline (self ):
9494 """Read a line and return it.
95-
95+
9696 This is a coroutine.
9797 """
9898
@@ -114,7 +114,7 @@ def write(self, buf):
114114
115115 async def drain (self ):
116116 """Drain (write) all buffered output data out to the stream.
117-
117+
118118 This is a coroutine.
119119 """
120120
@@ -137,10 +137,10 @@ async def drain(self):
137137async def open_connection (host , port ):
138138 """Open a TCP connection to the given *host* and *port*. The *host* address will
139139 be resolved using `socket.getaddrinfo`, which is currently a blocking call.
140-
140+
141141 Returns a pair of streams: a reader and a writer stream. Will raise a socket-specific
142142 ``OSError`` if the host could not be resolved or if the connection could not be made.
143-
143+
144144 This is a coroutine.
145145 """
146146
@@ -182,7 +182,7 @@ def close(self):
182182
183183 async def wait_closed (self ):
184184 """Wait for the server to close.
185-
185+
186186 This is a coroutine.
187187 """
188188
@@ -213,9 +213,9 @@ async def start_server(cb, host, port, backlog=5):
213213 """Start a TCP server on the given *host* and *port*. The *cb* callback wil be
214214 called with incoming, accepted connections, and be passed 2 arguments: reader
215215 writer streams for the connection.
216-
216+
217217 Returns a `Server` object.
218-
218+
219219 This is a coroutine.
220220 """
221221
0 commit comments