mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	asyncio: Tiny cleanup in streams.py.
This commit is contained in:
		
							parent
							
								
									2407f3bb1b
								
							
						
					
					
						commit
						efef9d3f25
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -38,7 +38,7 @@ def open_connection(host=None, port=None, *, | |||
|     if loop is None: | ||||
|         loop = events.get_event_loop() | ||||
|     reader = StreamReader(limit=limit, loop=loop) | ||||
|     protocol = StreamReaderProtocol(reader) | ||||
|     protocol = StreamReaderProtocol(reader, loop=loop) | ||||
|     transport, _ = yield from loop.create_connection( | ||||
|         lambda: protocol, host, port, **kwds) | ||||
|     writer = StreamWriter(transport, protocol, reader, loop) | ||||
|  | @ -151,7 +151,7 @@ class StreamWriter: | |||
|     This exposes write(), writelines(), [can_]write_eof(), | ||||
|     get_extra_info() and close().  It adds drain() which returns an | ||||
|     optional Future on which you can wait for flow control.  It also | ||||
|     adds a transport attribute which references the Transport | ||||
|     adds a transport property which references the Transport | ||||
|     directly. | ||||
|     """ | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum