summaryrefslogtreecommitdiff
path: root/Lib/idlelib
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
commitda22cb8d6f48f7499cad39bf82b8e59ae0f92c33 (patch)
tree5806228e54b70c7875b2d88ff7060b4d10aae57a /Lib/idlelib
parent71b8aaefeaef4bcd7afca47f642a19f854ca96cf (diff)
downloadcpython-da22cb8d6f48f7499cad39bf82b8e59ae0f92c33.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')
-rw-r--r--Lib/idlelib/rpc.py8
-rw-r--r--Lib/idlelib/run.py4
2 files changed, 6 insertions, 6 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
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py
index 7827c740e6..8abbe5010e 100644
--- a/Lib/idlelib/run.py
+++ b/Lib/idlelib/run.py
@@ -5,7 +5,7 @@ import socket
import traceback
import thread
import threading
-import Queue
+import queue
import CallTips
import AutoComplete
@@ -85,7 +85,7 @@ def main(del_exitfunc=False):
continue
try:
seq, request = rpc.request_queue.get(block=True, timeout=0.05)
- except Queue.Empty:
+ except queue.Empty:
continue
method, args, kwargs = request
ret = method(*args, **kwargs)