mirror of
https://github.com/python/cpython
synced 2024-09-16 03:29:57 +00:00
gh-84623: Remove unused imports in stdlib (#93773)
This commit is contained in:
parent
65ac273280
commit
259dd71c32
|
@ -1,7 +1,6 @@
|
|||
__all__ = ()
|
||||
|
||||
import reprlib
|
||||
from _thread import get_ident
|
||||
|
||||
from . import format_helpers
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
import inspect
|
||||
import os
|
||||
import sys
|
||||
import traceback
|
||||
import types
|
||||
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
from . import exceptions
|
||||
from . import mixins
|
||||
from . import tasks
|
||||
|
||||
class _ContextManagerMixin:
|
||||
async def __aenter__(self):
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
import functools
|
||||
import threading
|
||||
import signal
|
||||
import sys
|
||||
from . import coroutines
|
||||
from . import events
|
||||
from . import exceptions
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
import socket
|
||||
import sys
|
||||
import warnings
|
||||
import weakref
|
||||
|
||||
if hasattr(socket, 'AF_UNIX'):
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
Email: <fdrake@acm.org>
|
||||
"""
|
||||
|
||||
import _imp
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"""
|
||||
import re
|
||||
|
||||
from tkinter import (Toplevel, Listbox, Scale, Canvas,
|
||||
from tkinter import (Toplevel, Listbox, Canvas,
|
||||
StringVar, BooleanVar, IntVar, TRUE, FALSE,
|
||||
TOP, BOTTOM, RIGHT, LEFT, SOLID, GROOVE,
|
||||
NONE, BOTH, X, Y, W, E, EW, NS, NSEW, NW,
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
* std streams (pyshell, run),
|
||||
* warning stuff (pyshell, run).
|
||||
"""
|
||||
from os import path
|
||||
|
||||
# .pyw is for Windows; .pyi is for stub files.
|
||||
py_extensions = ('.py', '.pyw', '.pyi') # Order needed for open/save dialogs.
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
from time import monotonic as _time
|
||||
from _weakrefset import WeakSet
|
||||
from itertools import islice as _islice, count as _count
|
||||
from itertools import count as _count
|
||||
try:
|
||||
from _collections import deque as _deque
|
||||
except ImportError:
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
__all__ = ["Dialog"]
|
||||
|
||||
from tkinter import Frame, _get_temp_root, _destroy_temp_root
|
||||
from tkinter import _get_temp_root, _destroy_temp_root
|
||||
|
||||
|
||||
class Dialog:
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
from collections import namedtuple
|
||||
import functools
|
||||
import re
|
||||
import sys
|
||||
import types
|
||||
import warnings
|
||||
|
||||
|
|
|
@ -88,7 +88,6 @@
|
|||
import http.client
|
||||
import io
|
||||
import os
|
||||
import posixpath
|
||||
import re
|
||||
import socket
|
||||
import string
|
||||
|
|
Loading…
Reference in a new issue