Skip to content

Commit 48d8297

Browse files
Remove unused imports from Tools/
1 parent 5b38519 commit 48d8297

11 files changed

Lines changed: 2 additions & 23 deletions

File tree

Tools/c-analyzer/c_parser/preprocessor/clang.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import os.path
2-
import re, sys
32

43
from . import common as _common
54
from . import gcc as _gcc

Tools/c-analyzer/c_parser/preprocessor/common.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import subprocess
77
import sys
88

9-
from ..info import FileInfo, SourceLine
109
from .errors import (
1110
PreprocessorFailure,
1211
ErrorDirectiveError,

Tools/c-analyzer/distutils/util.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import re
99
import string
1010
import sys
11-
from distutils.errors import DistutilsPlatformError
1211

1312
def get_host_platform():
1413
"""Return a string that identifies the current platform. This is used mainly to

Tools/cases_generator/generators_common.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@
77
analysis_error,
88
Label,
99
CodeSection,
10-
Uop,
1110
)
1211
from cwriter import CWriter
1312
from typing import Callable, TextIO, Iterator, Iterable
1413
from lexer import Token
1514
from stack import Storage, StackError
1615
from parser import Stmt, SimpleStmt, BlockStmt, IfStmt, ForStmt, WhileStmt, MacroIfStmt
17-
from stack import PRINT_STACKS
1816
DEBUG = False
1917

2018
class TokenIterator:

Tools/cases_generator/opcode_metadata_generator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
cflags,
2020
)
2121
from cwriter import CWriter
22-
from dataclasses import dataclass
2322
from typing import TextIO
2423
from stack import get_stack_effect
2524

Tools/cases_generator/parser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
MacroIfStmt,
2121
)
2222

23-
import pprint
2423

2524
CodeDef = InstDef | LabelDef
2625

Tools/cases_generator/tier1_generator.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
Analysis,
1010
Instruction,
1111
Uop,
12-
Label,
13-
CodeSection,
1412
Part,
1513
analyze_files,
1614
Skip,
@@ -24,13 +22,9 @@
2422
write_header,
2523
type_and_null,
2624
Emitter,
27-
TokenIterator,
28-
always_true,
29-
emit_to,
3025
)
3126
from cwriter import CWriter
3227
from typing import TextIO
33-
from lexer import Token
3428
from stack import Local, Stack, StackError, get_stack_effect, Storage
3529

3630
DEFAULT_OUTPUT = ROOT / "Python/generated_cases.c.h"

Tools/inspection/benchmark_external_inspection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import sys
55
import contextlib
66
import tempfile
7-
import os
87
import argparse
98
from _colorize import get_colors, can_colorize
109

Tools/jit/_stencils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import dataclasses
44
import enum
5-
import sys
65
import typing
76

87
import _schema

Tools/peg_generator/pegen/grammar_parser.py

Lines changed: 1 addition & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)