mirror of
				https://github.com/python/cpython.git
				synced 2025-11-01 06:01:29 +00:00 
			
		
		
		
	[Part of patch #909005] Added map parameter for file_dispatcher and dispatcher_with_send
This commit is contained in:
		
							parent
							
								
									174bdbc999
								
							
						
					
					
						commit
						67867eaf8c
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -419,8 +419,8 @@ def handle_close(self): | |||
| 
 | ||||
| class dispatcher_with_send(dispatcher): | ||||
| 
 | ||||
|     def __init__(self, sock=None): | ||||
|         dispatcher.__init__(self, sock) | ||||
|     def __init__(self, sock=None, map=None): | ||||
|         dispatcher.__init__(self, sock, map) | ||||
|         self.out_buffer = '' | ||||
| 
 | ||||
|     def initiate_send(self): | ||||
|  | @ -510,8 +510,8 @@ def fileno(self): | |||
| 
 | ||||
|     class file_dispatcher(dispatcher): | ||||
| 
 | ||||
|         def __init__(self, fd): | ||||
|             dispatcher.__init__(self) | ||||
|         def __init__(self, fd, map=None): | ||||
|             dispatcher.__init__(self, None, map) | ||||
|             self.connected = True | ||||
|             # set it to non-blocking mode | ||||
|             flags = fcntl.fcntl(fd, fcntl.F_GETFL, 0) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andrew M. Kuchling
						Andrew M. Kuchling