summaryrefslogtreecommitdiffstats
path: root/Lib/Queue.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-12-29 15:33:08 (GMT)
committerGuido van Rossum <guido@python.org>1993-12-29 15:33:08 (GMT)
commitdd8cb446e19cb24131227bd66aa690b34e64a75a (patch)
tree7e944159562f197b8288ae0dacc78343db173d0f /Lib/Queue.py
parent424e4da9f38fe8281cae370936ff266bcbeb0804 (diff)
downloadcpython-dd8cb446e19cb24131227bd66aa690b34e64a75a.zip
cpython-dd8cb446e19cb24131227bd66aa690b34e64a75a.tar.gz
cpython-dd8cb446e19cb24131227bd66aa690b34e64a75a.tar.bz2
Some minute changes.
Diffstat (limited to 'Lib/Queue.py')
-rw-r--r--Lib/Queue.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/Queue.py b/Lib/Queue.py
index 0d69777..5125fd5 100644
--- a/Lib/Queue.py
+++ b/Lib/Queue.py
@@ -7,6 +7,7 @@ class Queue:
# Initialize a queue object with a given maximum size
# (If maxsize is <= 0, the maximum size is infinite)
def __init__(self, maxsize):
+ import thread
self._init(maxsize)
self.mutex = thread.allocate_lock()
self.esema = thread.allocate_lock()