diff options
Diffstat (limited to 'Lib/Queue.py')
-rw-r--r-- | Lib/Queue.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/Queue.py b/Lib/Queue.py index 39c86f2..83a8318 100644 --- a/Lib/Queue.py +++ b/Lib/Queue.py @@ -16,7 +16,10 @@ class Queue: If maxsize is <= 0, the queue size is infinite. """ - import thread + try: + import thread + except ImportError: + import dummy_thread as thread self._init(maxsize) self.mutex = thread.allocate_lock() self.esema = thread.allocate_lock() |