gh-151428: Remove unused imports from `Tools/` by ByteFlowing1337 · Pull Request #151442 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Tools/c-analyzer/c_parser/preprocessor/clang.py
1 change: 0 additions & 1 deletion Tools/c-analyzer/distutils/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import re
import string
import sys
from distutils.errors import DistutilsPlatformError

def get_host_platform():
"""Return a string that identifies the current platform. This is used mainly to
Expand Down
2 changes: 0 additions & 2 deletions Tools/cases_generator/generators_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@
analysis_error,
Label,
CodeSection,
Uop,
)
from cwriter import CWriter
from typing import Callable, TextIO, Iterator, Iterable
from lexer import Token
from stack import Storage, StackError
from parser import Stmt, SimpleStmt, BlockStmt, IfStmt, ForStmt, WhileStmt, MacroIfStmt
from stack import PRINT_STACKS
DEBUG = False

class TokenIterator:
Expand Down
1 change: 0 additions & 1 deletion Tools/cases_generator/opcode_metadata_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
cflags,
)
from cwriter import CWriter
from dataclasses import dataclass
from typing import TextIO
from stack import get_stack_effect

Expand Down
1 change: 0 additions & 1 deletion Tools/cases_generator/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
MacroIfStmt,
)

import pprint

CodeDef = InstDef | LabelDef

Expand Down
6 changes: 0 additions & 6 deletions Tools/cases_generator/tier1_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
Analysis,
Instruction,
Uop,
Label,
CodeSection,
Part,
analyze_files,
Skip,
Expand All @@ -24,13 +22,9 @@
write_header,
type_and_null,
Emitter,
TokenIterator,
always_true,
emit_to,
)
from cwriter import CWriter
from typing import TextIO
from lexer import Token
from stack import Local, Stack, StackError, get_stack_effect, Storage

DEFAULT_OUTPUT = ROOT / "Python/generated_cases.c.h"
Expand Down
1 change: 0 additions & 1 deletion Tools/inspection/benchmark_external_inspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import sys
import contextlib
import tempfile
import os
import argparse
from _colorize import get_colors, can_colorize

Expand Down
1 change: 0 additions & 1 deletion Tools/jit/_stencils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import dataclasses
import enum
import sys
import typing

import _schema
Expand Down
4 changes: 1 addition & 3 deletions Tools/picklebench/memory_dos_impact.py
Loading