bpo-40443: Remove unused imports in the stdlib (GH-19803)
This commit is contained in:
parent
3209cbd99b
commit
90549676e0
|
@ -19,7 +19,6 @@ import sys
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
from . import format_helpers
|
from . import format_helpers
|
||||||
from . import exceptions
|
|
||||||
|
|
||||||
|
|
||||||
class Handle:
|
class Handle:
|
||||||
|
|
|
@ -5,7 +5,6 @@ try:
|
||||||
except ImportError: # pragma: no cover
|
except ImportError: # pragma: no cover
|
||||||
ssl = None
|
ssl = None
|
||||||
|
|
||||||
from . import base_events
|
|
||||||
from . import constants
|
from . import constants
|
||||||
from . import protocols
|
from . import protocols
|
||||||
from . import transports
|
from . import transports
|
||||||
|
|
|
@ -12,7 +12,6 @@ __author__ = "Nadeem Vawda <nadeem.vawda@gmail.com>"
|
||||||
from builtins import open as _builtin_open
|
from builtins import open as _builtin_open
|
||||||
import io
|
import io
|
||||||
import os
|
import os
|
||||||
import warnings
|
|
||||||
import _compression
|
import _compression
|
||||||
from threading import RLock
|
from threading import RLock
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,6 @@ Process #1..n:
|
||||||
|
|
||||||
__author__ = 'Brian Quinlan (brian@sweetapp.com)'
|
__author__ = 'Brian Quinlan (brian@sweetapp.com)'
|
||||||
|
|
||||||
import atexit
|
|
||||||
import os
|
import os
|
||||||
from concurrent.futures import _base
|
from concurrent.futures import _base
|
||||||
import queue
|
import queue
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
|
|
||||||
__author__ = 'Brian Quinlan (brian@sweetapp.com)'
|
__author__ = 'Brian Quinlan (brian@sweetapp.com)'
|
||||||
|
|
||||||
import atexit
|
|
||||||
from concurrent.futures import _base
|
from concurrent.futures import _base
|
||||||
import itertools
|
import itertools
|
||||||
import queue
|
import queue
|
||||||
|
|
|
@ -3,7 +3,6 @@ import os
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import sysconfig
|
|
||||||
import unittest
|
import unittest
|
||||||
import test.support
|
import test.support
|
||||||
from ctypes.util import find_library
|
from ctypes.util import find_library
|
||||||
|
|
|
@ -7,8 +7,6 @@ import marshal
|
||||||
import os
|
import os
|
||||||
import io
|
import io
|
||||||
import sys
|
import sys
|
||||||
import types
|
|
||||||
import warnings
|
|
||||||
|
|
||||||
|
|
||||||
LOAD_CONST = dis.opmap['LOAD_CONST']
|
LOAD_CONST = dis.opmap['LOAD_CONST']
|
||||||
|
|
|
@ -51,7 +51,6 @@ __all__ = [
|
||||||
|
|
||||||
import binascii
|
import binascii
|
||||||
import codecs
|
import codecs
|
||||||
import contextlib
|
|
||||||
import datetime
|
import datetime
|
||||||
import enum
|
import enum
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
|
@ -59,7 +58,6 @@ import itertools
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import struct
|
import struct
|
||||||
from warnings import warn
|
|
||||||
from xml.parsers.expat import ParserCreate
|
from xml.parsers.expat import ParserCreate
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
"""Implementation of the DOM Level 3 'LS-Load' feature."""
|
"""Implementation of the DOM Level 3 'LS-Load' feature."""
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
import warnings
|
|
||||||
import xml.dom
|
import xml.dom
|
||||||
|
|
||||||
from xml.dom.NodeFilter import NodeFilter
|
from xml.dom.NodeFilter import NodeFilter
|
||||||
|
|
|
@ -4,7 +4,6 @@ Read and write ZIP files.
|
||||||
XXX references to utf-8 need further investigation.
|
XXX references to utf-8 need further investigation.
|
||||||
"""
|
"""
|
||||||
import binascii
|
import binascii
|
||||||
import functools
|
|
||||||
import importlib.util
|
import importlib.util
|
||||||
import io
|
import io
|
||||||
import itertools
|
import itertools
|
||||||
|
|
Loading…
Reference in New Issue