mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Added stub for the Queue module to be renamed in 3.0.
Use the 3.0 module name to avoid spurious warnings.
This commit is contained in:
		
							parent
							
								
									ca3ccd15ff
								
							
						
					
					
						commit
						30ece44f2e
					
				
					 8 changed files with 276 additions and 268 deletions
				
			
		|  | @ -35,7 +35,7 @@ | |||
| import struct | ||||
| import cPickle as pickle | ||||
| import threading | ||||
| import Queue | ||||
| import queue | ||||
| import traceback | ||||
| import copyreg | ||||
| import types | ||||
|  | @ -117,8 +117,8 @@ def handle_error(self, request, client_address): | |||
| #----------------- end class RPCServer -------------------- | ||||
| 
 | ||||
| objecttable = {} | ||||
| request_queue = Queue.Queue(0) | ||||
| response_queue = Queue.Queue(0) | ||||
| request_queue = queue.Queue(0) | ||||
| response_queue = queue.Queue(0) | ||||
| 
 | ||||
| 
 | ||||
| class SocketIO(object): | ||||
|  | @ -413,7 +413,7 @@ def pollresponse(self, myseq, wait): | |||
|             # send queued response if there is one available | ||||
|             try: | ||||
|                 qmsg = response_queue.get(0) | ||||
|             except Queue.Empty: | ||||
|             except queue.Empty: | ||||
|                 pass | ||||
|             else: | ||||
|                 seq, response = qmsg | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alexandre Vassalotti
						Alexandre Vassalotti