8000 Remove several unused imports in `_pyrepl` (#118668) · python/cpython@ad3d877 · GitHub
[go: up one dir, main page]

Skip to content

Commit ad3d877

Browse files
authored
Remove several unused imports in _pyrepl (#118668)
1 parent 65f5e58 commit ad3d877

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

Lib/_pyrepl/reader.py

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

2424
from contextlib import contextmanager
2525
from dataclasses import dataclass, field, fields
26-
import re
2726
import unicodedata
2827
from _colorize import can_colorize, ANSIColors # type: ignore[import-not-found]
2928

Lib/_pyrepl/simple_interact.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import code
3333
from types import ModuleType
3434

35-
from .console import Event
3635
from .readline import _get_reader, multiline_input
3736
from .unix_console import _error
3837

@@ -82,7 +81,6 @@ def showtraceback(self):
8281
def run_multiline_interactive_console(
8382
mainmodule: ModuleType | None= None, future_flags: int = 0
8483
) -> None:
85-
import code
8684
import __main__
8785
from .readline import _setup
8886
_setup()

0 commit comments

Comments
 (0)
0