Skip to content

Commit

Permalink
pythongh-84623: Remove unused imports in stdlib (python#93773)
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner authored Jun 13, 2022
1 parent 65ac273 commit 259dd71
Show file tree
Hide file tree
Showing 12 changed files with 3 additions and 12 deletions.
1 change: 0 additions & 1 deletion Lib/asyncio/base_futures.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
__all__ = ()

import reprlib
from _thread import get_ident

from . import format_helpers

Expand Down
1 change: 0 additions & 1 deletion Lib/asyncio/coroutines.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import inspect
import os
import sys
import traceback
import types


Expand Down
1 change: 0 additions & 1 deletion Lib/asyncio/locks.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from . import exceptions
from . import mixins
from . import tasks

class _ContextManagerMixin:
async def __aenter__(self):
Expand Down
1 change: 0 additions & 1 deletion Lib/asyncio/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import functools
import threading
import signal
import sys
from . import coroutines
from . import events
from . import exceptions
Expand Down
1 change: 0 additions & 1 deletion Lib/asyncio/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import socket
import sys
import warnings
import weakref

if hasattr(socket, 'AF_UNIX'):
Expand Down
1 change: 0 additions & 1 deletion Lib/distutils/sysconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
Email: <fdrake@acm.org>
"""

import _imp
import os
import re
import sys
Expand Down
2 changes: 1 addition & 1 deletion Lib/idlelib/configdialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion Lib/idlelib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Lib/threading.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion Lib/tkinter/commondialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion Lib/urllib/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
from collections import namedtuple
import functools
import re
import sys
import types
import warnings

Expand Down
1 change: 0 additions & 1 deletion Lib/urllib/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@
import http.client
import io
import os
import posixpath
import re
import socket
import string
Expand Down

0 comments on commit 259dd71

Please sign in to comment.