Skip to content

Commit 779adf1

Browse files
authored
[clang-tools-extra] Fix python syntax - pull in Queue from module queue (#159997)
No such module as `Queue` - the `Queue` class is part of the `queue` module.
1 parent 538cd20 commit 779adf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import json
2727
import multiprocessing
2828
import os
29-
import Queue
29+
from queue import Queue
3030
import shutil
3131
import subprocess
3232
import sys
@@ -105,7 +105,7 @@ def main():
105105

106106
try:
107107
# Spin up a bunch of tidy-launching threads.
108-
queue = Queue.Queue(max_task)
108+
queue = Queue(max_task)
109109
for _ in range(max_task):
110110
t = threading.Thread(
111111
target=run_find_all_symbols, args=(args, tmpdir, build_path, queue)

0 commit comments

Comments
 (0)