https://github.com/python/cpython/commit/ad3d877a126bc892d1c598cf1357a2c39fd466c7
commit: ad3d877a126bc892d1c598cf1357a2c39fd466c7
branch: main
author: Nikita Sobolev <[email protected]>
committer: pablogsal <[email protected]>
date: 2024-05-07T13:43:18+01:00
summary:

Remove several unused imports in `_pyrepl` (#118668)

files:
M Lib/_pyrepl/reader.py
M Lib/_pyrepl/simple_interact.py

diff --git a/Lib/_pyrepl/reader.py b/Lib/_pyrepl/reader.py
index a7ef988da12a6a..071dfe54aba8fb 100644
--- a/Lib/_pyrepl/reader.py
+++ b/Lib/_pyrepl/reader.py
@@ -23,7 +23,6 @@
 
 from contextlib import contextmanager
 from dataclasses import dataclass, field, fields
-import re
 import unicodedata
 from _colorize import can_colorize, ANSIColors  # type: 
ignore[import-not-found]
 
diff --git a/Lib/_pyrepl/simple_interact.py b/Lib/_pyrepl/simple_interact.py
index ce79d0d547ebce..4bc8368169336a 100644
--- a/Lib/_pyrepl/simple_interact.py
+++ b/Lib/_pyrepl/simple_interact.py
@@ -32,7 +32,6 @@
 import code
 from types import ModuleType
 
-from .console import Event
 from .readline import _get_reader, multiline_input
 from .unix_console import _error
 
@@ -82,7 +81,6 @@ def showtraceback(self):
 def run_multiline_interactive_console(
     mainmodule: ModuleType | None= None, future_flags: int = 0
 ) -> None:
-    import code
     import __main__
     from .readline import _setup
     _setup()

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to