[clang-tools-extra] [clang-tools-extra] Fix python syntax - pull in Queue from module queue (PR #159997)

Moinak Bhattacharyya via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 21 11:49:45 PDT 2025


https://github.com/moinakb001 created https://github.com/llvm/llvm-project/pull/159997

No such module as Queue - the Queue class is part of the queue module.

>From 8132ae2cdd93094c7f86322f07022d927ac5b6c1 Mon Sep 17 00:00:00 2001
From: Moinak Bhattacharyya <moinakb001 at gmail.com>
Date: Sun, 21 Sep 2025 13:42:02 -0500
Subject: [PATCH] [clang-tools-extra] Fix python syntax - pull in Queue from
 module queue

---
 .../find-all-symbols/tool/run-find-all-symbols.py             | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py b/clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
index 471dbf8c110b4..49a1b14932644 100755
--- a/clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
+++ b/clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
@@ -26,7 +26,7 @@
 import json
 import multiprocessing
 import os
-import Queue
+from queue import Queue
 import shutil
 import subprocess
 import sys
@@ -105,7 +105,7 @@ def main():
 
     try:
         # Spin up a bunch of tidy-launching threads.
-        queue = Queue.Queue(max_task)
+        queue = Queue(max_task)
         for _ in range(max_task):
             t = threading.Thread(
                 target=run_find_all_symbols, args=(args, tmpdir, build_path, queue)



More information about the cfe-commits mailing list