forked from OSchip/llvm-project
Portable Python script across Python version
Queue module as been renamed into queue in Python3 Differential Revision: https://reviews.llvm.org/D55202 llvm-svn: 349009
This commit is contained in:
parent
b3835de3ee
commit
1f88dc5aee
|
@ -58,7 +58,10 @@ import shutil
|
|||
import sys
|
||||
import threading
|
||||
import time
|
||||
import Queue
|
||||
try:
|
||||
import queue
|
||||
except ImportError:
|
||||
import Queue as queue
|
||||
|
||||
###############################################################################
|
||||
# Helper functions.
|
||||
|
@ -742,7 +745,7 @@ def multiThreadedTestAll(Args, ProjectsToTest, Jobs):
|
|||
|
||||
:return: whether tests have passed.
|
||||
"""
|
||||
TasksQueue = Queue.Queue()
|
||||
TasksQueue = queue.Queue()
|
||||
|
||||
for ProjArgs in ProjectsToTest:
|
||||
TasksQueue.put(ProjArgs)
|
||||
|
|
Loading…
Reference in New Issue