summaryrefslogtreecommitdiff
path: root/Lib/idlelib/rpc.py
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2008-05-11 19:39:48 +0000
committerAlexandre Vassalotti <alexandre@peadrop.com>2008-05-11 19:39:48 +0000
commit30ece44f2e5397e8501380349fd5278e6f64f555 (patch)
tree769eb0873f3fdeeb6be8bbf1b661418fbf56d48c /Lib/idlelib/rpc.py
parentca3ccd15ffa92423dac6cdda82507eb45347c1d4 (diff)
downloadcpython-git-30ece44f2e5397e8501380349fd5278e6f64f555.tar.gz
Added stub for the Queue module to be renamed in 3.0.
Use the 3.0 module name to avoid spurious warnings.
Diffstat (limited to 'Lib/idlelib/rpc.py')
-rw-r--r--Lib/idlelib/rpc.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/idlelib/rpc.py b/Lib/idlelib/rpc.py
index 52a2eaf9d8..7d36b2a54d 100644
--- a/Lib/idlelib/rpc.py
+++ b/Lib/idlelib/rpc.py
@@ -35,7 +35,7 @@ import SocketServer
import struct
import cPickle as pickle
import threading
-import Queue
+import queue
import traceback
import copyreg
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