summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/asyncio/base_futures.py1
-rw-r--r--Lib/asyncio/coroutines.py1
-rw-r--r--Lib/asyncio/locks.py1
-rw-r--r--Lib/asyncio/runners.py1
-rw-r--r--Lib/asyncio/streams.py1
-rw-r--r--Lib/distutils/sysconfig.py1
-rw-r--r--Lib/idlelib/configdialog.py2
-rw-r--r--Lib/idlelib/util.py1
-rw-r--r--Lib/threading.py2
-rw-r--r--Lib/tkinter/commondialog.py2
-rw-r--r--Lib/urllib/parse.py1
-rw-r--r--Lib/urllib/request.py1
12 files changed, 3 insertions, 12 deletions
diff --git a/Lib/asyncio/base_futures.py b/Lib/asyncio/base_futures.py
index cd811a7..7987963 100644
--- a/Lib/asyncio/base_futures.py
+++ b/Lib/asyncio/base_futures.py
@@ -1,7 +1,6 @@
__all__ = ()
import reprlib
-from _thread import get_ident
from . import format_helpers
diff --git a/Lib/asyncio/coroutines.py b/Lib/asyncio/coroutines.py
index 0e4b489..7fda0e4 100644
--- a/Lib/asyncio/coroutines.py
+++ b/Lib/asyncio/coroutines.py
@@ -4,7 +4,6 @@ import collections.abc
import inspect
import os
import sys
-import traceback
import types
diff --git a/Lib/asyncio/locks.py b/Lib/asyncio/locks.py
index e711302..42177f1 100644
--- a/Lib/asyncio/locks.py
+++ b/Lib/asyncio/locks.py
@@ -8,7 +8,6 @@ import enum
from . import exceptions
from . import mixins
-from . import tasks
class _ContextManagerMixin:
async def __aenter__(self):
diff --git a/Lib/asyncio/runners.py b/Lib/asyncio/runners.py
index 065691b..f524c3b 100644
--- a/Lib/asyncio/runners.py
+++ b/Lib/asyncio/runners.py
@@ -5,7 +5,6 @@ import enum
import functools
import threading
import signal
-import sys
from . import coroutines
from . import events
from . import exceptions
diff --git a/Lib/asyncio/streams.py b/Lib/asyncio/streams.py
index a568c4e..9a16903 100644
--- a/Lib/asyncio/streams.py
+++ b/Lib/asyncio/streams.py
@@ -4,7 +4,6 @@ __all__ = (
import socket
import sys
-import warnings
import weakref
if hasattr(socket, 'AF_UNIX'):
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py
index 3414a76..0418775 100644
--- a/Lib/distutils/sysconfig.py
+++ b/Lib/distutils/sysconfig.py
@@ -9,7 +9,6 @@ Written by: Fred L. Drake, Jr.
Email: <fdrake@acm.org>
"""
-import _imp
import os
import re
import sys
diff --git a/Lib/idlelib/configdialog.py b/Lib/idlelib/configdialog.py
index d5748a6..57eaffe 100644
--- a/Lib/idlelib/configdialog.py
+++ b/Lib/idlelib/configdialog.py
@@ -11,7 +11,7 @@ Refer to comments in EditorWindow autoindent code for details.
"""
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,
diff --git a/Lib/idlelib/util.py b/Lib/idlelib/util.py
index 5480219..ede670a 100644
--- a/Lib/idlelib/util.py
+++ b/Lib/idlelib/util.py
@@ -12,7 +12,6 @@ TODO:
* 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.
diff --git a/Lib/threading.py b/Lib/threading.py
index a3df587..e32ad14 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -7,7 +7,7 @@ import functools
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:
diff --git a/Lib/tkinter/commondialog.py b/Lib/tkinter/commondialog.py
index e595c99..86f5387 100644
--- a/Lib/tkinter/commondialog.py
+++ b/Lib/tkinter/commondialog.py
@@ -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:
diff --git a/Lib/urllib/parse.py b/Lib/urllib/parse.py
index d70a694..fd6d9f4 100644
--- a/Lib/urllib/parse.py
+++ b/Lib/urllib/parse.py
@@ -30,7 +30,6 @@ test_urlparse.py provides a good indicator of parsing behavior.
from collections import namedtuple
import functools
import re
-import sys
import types
import warnings
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py
index 6d580a4..c352fb2 100644
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -88,7 +88,6 @@ import hashlib
import http.client
import io
import os
-import posixpath
import re
import socket
import string