Queue module as been renamed into queue in Python3
Differential Revision: https://reviews.llvm.org/D55202
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349009
91177308-0d34-0410-b5e6-
96231b3b80d8
import sys
import threading
import time
-import Queue
+try:
+ import queue
+except ImportError:
+ import Queue as queue
###############################################################################
# Helper functions.
:return: whether tests have passed.
"""
- TasksQueue = Queue.Queue()
+ TasksQueue = queue.Queue()
for ProjArgs in ProjectsToTest:
TasksQueue.put(ProjArgs)