Skip to content

Commit

Permalink
Portable Python script across Python version
Browse files Browse the repository at this point in the history
Queue module as been renamed into queue in Python3

Differential Revision: https://reviews.llvm.org/D55202

llvm-svn: 349009
  • Loading branch information
serge-sans-paille-qb committed Dec 13, 2018
1 parent b3835de commit 1f88dc5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions clang/utils/analyzer/SATestBuild.py
Expand Up @@ -58,7 +58,10 @@
import sys
import threading
import time
import Queue
try:
import queue
except ImportError:
import Queue as queue

###############################################################################
# Helper functions.
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1f88dc5

Please sign in to comment.