diff options
Diffstat (limited to 'Lib/Queue.py')
-rw-r--r-- | Lib/Queue.py | 1 |
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() |