summaryrefslogtreecommitdiffstats
path: root/Lib/_pyrepl
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-06-12 19:27:32 (GMT)
committerGitHub <noreply@github.com>2024-06-12 19:27:32 (GMT)
commit51724620e868512bbedb1547aca441bcd27bbe0c (patch)
treec5c4b7f8118be02549281421c736543998bdf349 /Lib/_pyrepl
parent7c6b3429b631d80de0348e5ddc2a3a8125e5c00d (diff)
downloadcpython-51724620e868512bbedb1547aca441bcd27bbe0c.zip
cpython-51724620e868512bbedb1547aca441bcd27bbe0c.tar.gz
cpython-51724620e868512bbedb1547aca441bcd27bbe0c.tar.bz2
[3.13] gh-120417: Remove unused imports in the stdlib (GH-120420) (#120429)
gh-120417: Remove unused imports in the stdlib (GH-120420) (cherry picked from commit 4c6d4f5cb33e48519922d635894eef356faddba2) Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Lib/_pyrepl')
-rw-r--r--Lib/_pyrepl/historical_reader.py2
-rw-r--r--Lib/_pyrepl/pager.py2
-rw-r--r--Lib/_pyrepl/unix_console.py1
-rw-r--r--Lib/_pyrepl/windows_console.py3
4 files changed, 2 insertions, 6 deletions
diff --git a/Lib/_pyrepl/historical_reader.py b/Lib/_pyrepl/historical_reader.py
index 121de33..dd90912 100644
--- a/Lib/_pyrepl/historical_reader.py
+++ b/Lib/_pyrepl/historical_reader.py
@@ -27,7 +27,7 @@ from .reader import Reader
if False:
- from .types import Callback, SimpleContextManager, KeySpec, CommandName
+ from .types import SimpleContextManager, KeySpec, CommandName
isearch_keymap: tuple[tuple[KeySpec, CommandName], ...] = tuple(
diff --git a/Lib/_pyrepl/pager.py b/Lib/_pyrepl/pager.py
index 1ac733e..66dcd99 100644
--- a/Lib/_pyrepl/pager.py
+++ b/Lib/_pyrepl/pager.py
@@ -8,7 +8,7 @@ import sys
# types
if False:
- from typing import Protocol, Any
+ from typing import Protocol
class Pager(Protocol):
def __call__(self, text: str, title: str = "") -> None:
...
diff --git a/Lib/_pyrepl/unix_console.py b/Lib/_pyrepl/unix_console.py
index af92908..c4dedd9 100644
--- a/Lib/_pyrepl/unix_console.py
+++ b/Lib/_pyrepl/unix_console.py
@@ -27,7 +27,6 @@ import re
import select
import signal
import struct
-import sys
import termios
import time
from fcntl import ioctl
diff --git a/Lib/_pyrepl/windows_console.py b/Lib/_pyrepl/windows_console.py
index f691ca3..9e97b15 100644
--- a/Lib/_pyrepl/windows_console.py
+++ b/Lib/_pyrepl/windows_console.py
@@ -20,15 +20,12 @@
from __future__ import annotations
import io
-from multiprocessing import Value
import os
import sys
import time
import msvcrt
-from abc import ABC, abstractmethod
from collections import deque
-from dataclasses import dataclass, field
import ctypes
from ctypes.wintypes import (
_COORD,