@@ -43,8 +43,6 @@ def close(self):
4343    async  def  wait_closed (self ):
4444        # CIRCUITPY-CHANGE: doc 
4545        """Wait for the stream to close. 
46- 
47-         This is a coroutine. 
4846        """ 
4947
5048        # TODO yield? 
@@ -54,8 +52,6 @@ async def wait_closed(self):
5452    async  def  read (self , n ):
5553        # CIRCUITPY-CHANGE: doc 
5654        """Read up to *n* bytes and return them. 
57- 
58-         This is a coroutine. 
5955        """ 
6056
6157        await  core ._io_queue .queue_read (self .s )
@@ -67,7 +63,7 @@ async def readinto(self, buf):
6763
6864        Return the number of bytes read into *buf* 
6965
70-         This is a coroutine, and a  MicroPython extension. 
66+         This is a MicroPython extension. 
7167        """ 
7268
7369        # CIRCUITPY-CHANGE: await, not yield 
@@ -81,9 +77,7 @@ async def readexactly(self, n):
8177
8278        Raises an ``EOFError`` exception if the stream ends before reading 
8379        *n* bytes. 
84- 
85-         This is a coroutine. 
86-         """ 
80+        """ 
8781
8882        r  =  b"" 
8983        while  n :
@@ -101,8 +95,6 @@ async def readexactly(self, n):
10195    async  def  readline (self ):
10296        # CIRCUITPY-CHANGE: doc 
10397        """Read a line and return it. 
104- 
105-         This is a coroutine. 
10698        """ 
10799
108100        l  =  b"" 
@@ -133,8 +125,6 @@ def write(self, buf):
133125    async  def  drain (self ):
134126        # CIRCUITPY-CHANGE: doc 
135127        """Drain (write) all buffered output data out to the stream. 
136- 
137-         This is a coroutine. 
138128        """ 
139129
140130        mv  =  memoryview (self .out_buf )
@@ -162,8 +152,6 @@ async def open_connection(host, port, ssl=None, server_hostname=None):
162152
163153    Returns a pair of streams: a reader and a writer stream. Will raise a socket-specific 
164154    ``OSError`` if the host could not be resolved or if the connection could not be made. 
165- 
166-     This is a coroutine. 
167155    """ 
168156
169157    from  uerrno  import  EINPROGRESS 
@@ -188,7 +176,7 @@ async def open_connection(host, port, ssl=None, server_hostname=None):
188176        s  =  ssl .wrap_socket (s , server_hostname = server_hostname , do_handshake_on_connect = False )
189177        s .setblocking (False )
190178    ss  =  Stream (s )
191-     yield  core ._io_queue .queue_write (s )
179+     await  core ._io_queue .queue_write (s )
192180    return  ss , ss 
193181
194182
@@ -214,8 +202,6 @@ def close(self):
214202
215203    async  def  wait_closed (self ):
216204        """Wait for the server to close. 
217- 
218-         This is a coroutine. 
219205        """ 
220206
221207        await  self .task 
@@ -263,8 +249,6 @@ async def start_server(cb, host, port, backlog=5):
263249    writer streams for the connection. 
264250
265251    Returns a `Server` object. 
266- 
267-     This is a coroutine. 
268252    """ 
269253
270254    import  socket 
0 commit comments