mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	asyncio: sync with Tulip
* Cleanup gather(): use cancelled() method instead of using private Future attribute * Fix _UnixReadPipeTransport and _UnixWritePipeTransport. Only start reading when connection_made() has been called. * Issue #23333: Fix BaseSelectorEventLoop._accept_connection(). Close the transport on error. In debug mode, log errors using call_exception_handler()
This commit is contained in:
		
							parent
							
								
									54a231d539
								
							
						
					
					
						commit
						2934262fd3
					
				
					 5 changed files with 86 additions and 45 deletions
				
			
		|  | @ -592,7 +592,7 @@ def _done_callback(i, fut): | |||
|                 fut.exception() | ||||
|             return | ||||
| 
 | ||||
|         if fut._state == futures._CANCELLED: | ||||
|         if fut.cancelled(): | ||||
|             res = futures.CancelledError() | ||||
|             if not return_exceptions: | ||||
|                 outer.set_exception(res) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Victor Stinner
						Victor Stinner