mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Queue renaming reversal part 3: move module into place and
change imports and other references. Closes #2925.
This commit is contained in:
parent
8107290fa1
commit
a6168f9e0a
15 changed files with 55 additions and 59 deletions
|
@ -35,7 +35,7 @@ import SocketServer
|
|||
import struct
|
||||
import cPickle as pickle
|
||||
import threading
|
||||
import queue
|
||||
import Queue
|
||||
import traceback
|
||||
import copy_reg
|
||||
import types
|
||||
|
@ -117,8 +117,8 @@ class RPCServer(SocketServer.TCPServer):
|
|||
#----------------- 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 @@ class SocketIO(object):
|
|||
# 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