FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-131152: Remove unused imports from `Tools/cases_generator` by vstinner · Pull Request #131156 · python/cpython · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (6) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
2 changes: 1 addition & 1 deletion Tools/cases_generator/analyzer.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from dataclasses import dataclass, field
from dataclasses import dataclass
import itertools
import lexer
import parser
Expand Down
1 change: 0 additions & 1 deletion Tools/cases_generator/generators_common.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from analyzer import (
Instruction,
Uop,
Properties,
StackItem,
analysis_error,
Expand Down
2 changes: 1 addition & 1 deletion Tools/cases_generator/optimizer_generator.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
TokenIterator,
)
from cwriter import CWriter
from typing import TextIO, Iterator
from typing import TextIO
from lexer import Token
from stack import Local, Stack, StackError, Storage

Expand Down
3 changes: 1 addition & 2 deletions Tools/cases_generator/stack.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import re
from analyzer import StackItem, StackEffect, Instruction, Uop, PseudoInstruction
from collections import defaultdict
from dataclasses import dataclass
from cwriter import CWriter
from typing import Iterator, Tuple
from typing import Iterator

UNUSED = {"unused"}

Expand Down
2 changes: 1 addition & 1 deletion Tools/cases_generator/tier1_generator.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
Emitter,
)
from cwriter import CWriter
from typing import TextIO, Callable
from typing import TextIO
from stack import Local, Stack, StackError, get_stack_effect, Storage

DEFAULT_OUTPUT = ROOT / "Python/generated_cases.c.h"
Expand Down
2 changes: 1 addition & 1 deletion Tools/cases_generator/tier2_generator.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
always_true,
)
from cwriter import CWriter
from typing import TextIO, Iterator
from typing import TextIO
from lexer import Token
from stack import Local, Stack, StackError, Storage

Expand Down

Back | FazBrowse Home | New Git URL