commit | dd8cb446e19cb24131227bd66aa690b34e64a75a | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Dec 29 15:33:08 1993 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Dec 29 15:33:08 1993 +0000 |
tree | 7e944159562f197b8288ae0dacc78343db173d0f | |
parent | 424e4da9f38fe8281cae370936ff266bcbeb0804 [diff] [blame] |
Some minute changes.
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 @@ # 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()