gh-84623: Remove unused imports in stdlib (#93773)

This commit is contained in:
Victor Stinner 2022-06-13 16:28:41 +02:00 committed by GitHub
parent 65ac273280
commit 259dd71c32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 3 additions and 12 deletions

View file

@ -1,7 +1,6 @@
__all__ = ()
import reprlib
from _thread import get_ident
from . import format_helpers

View file

@ -4,7 +4,6 @@
import inspect
import os
import sys
import traceback
import types

View file

@ -8,7 +8,6 @@
from . import exceptions
from . import mixins
from . import tasks
class _ContextManagerMixin:
async def __aenter__(self):

View file

@ -5,7 +5,6 @@
import functools
import threading
import signal
import sys
from . import coroutines
from . import events
from . import exceptions

View file

@ -4,7 +4,6 @@
import socket
import sys
import warnings
import weakref
if hasattr(socket, 'AF_UNIX'):

View file

@ -9,7 +9,6 @@
Email: <fdrake@acm.org>
"""
import _imp
import os
import re
import sys

View file

@ -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,

View file

@ -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.

View file

@ -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:

View file

@ -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:

View file

@ -30,7 +30,6 @@
from collections import namedtuple
import functools
import re
import sys
import types
import warnings

View file

@ -88,7 +88,6 @@
import http.client
import io
import os
import posixpath
import re
import socket
import string