Skip to content

Commit 66a2d1b

Browse files
authored
[clang-tidy][NFC] Remove py2 conditions from clang-tidy scripts (#154005)
1 parent 326d749 commit 66a2d1b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import json
2929
import multiprocessing
3030
import os
31+
import queue
3132
import re
3233
import shutil
3334
import subprocess
@@ -42,13 +43,6 @@
4243
except ImportError:
4344
yaml = None
4445

45-
is_py2 = sys.version[0] == "2"
46-
47-
if is_py2:
48-
import Queue as queue
49-
else:
50-
import queue as queue
51-
5246

5347
def run_tidy(task_queue, lock, timeout, failed_files):
5448
watchdog = None

0 commit comments

Comments
 (0)