diff options
| author | Victor Stinner <vstinner@python.org> | 2023-06-06 21:13:24 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-06 21:13:24 (GMT) |
| commit | 94d5f9827da4bf4b1e61c134fe29904b2b92f124 (patch) | |
| tree | 831fc49c1826f0bd5b37610f190c0dbb30f13563 | |
| parent | d1b0015ea88112258470463a74dad90ebce7ab67 (diff) | |
| download | cpython-94d5f9827da4bf4b1e61c134fe29904b2b92f124.zip cpython-94d5f9827da4bf4b1e61c134fe29904b2b92f124.tar.gz cpython-94d5f9827da4bf4b1e61c134fe29904b2b92f124.tar.bz2 | |
gh-105407: Remove unused imports in the stdlib (#105411)
| -rw-r--r-- | Lib/configparser.py | 1 | ||||
| -rw-r--r-- | Lib/importlib/__init__.py | 2 | ||||
| -rw-r--r-- | Lib/importlib/metadata/__init__.py | 1 | ||||
| -rw-r--r-- | Lib/turtle.py | 1 | ||||
| -rw-r--r-- | Lib/unittest/main.py | 1 |
5 files changed, 0 insertions, 6 deletions
diff --git a/Lib/configparser.py b/Lib/configparser.py index 9640f71..682d973 100644 --- a/Lib/configparser.py +++ b/Lib/configparser.py @@ -147,7 +147,6 @@ import itertools import os import re import sys -import warnings __all__ = ("NoSectionError", "DuplicateOptionError", "DuplicateSectionError", "NoOptionError", "InterpolationError", "InterpolationDepthError", diff --git a/Lib/importlib/__init__.py b/Lib/importlib/__init__.py index 707c081..f38fe5c 100644 --- a/Lib/importlib/__init__.py +++ b/Lib/importlib/__init__.py @@ -54,8 +54,6 @@ _unpack_uint32 = _bootstrap_external._unpack_uint32 # Fully bootstrapped at this point, import whatever you like, circular # dependencies and startup overhead minimisation permitting :) -import warnings - # Public API ######################################################### diff --git a/Lib/importlib/metadata/__init__.py b/Lib/importlib/metadata/__init__.py index 82e0ce1..5c09666 100644 --- a/Lib/importlib/metadata/__init__.py +++ b/Lib/importlib/metadata/__init__.py @@ -12,7 +12,6 @@ import warnings import functools import itertools import posixpath -import contextlib import collections import inspect diff --git a/Lib/turtle.py b/Lib/turtle.py index 54f0efa..e542bc9 100644 --- a/Lib/turtle.py +++ b/Lib/turtle.py @@ -104,7 +104,6 @@ import math import time import inspect import sys -import warnings from os.path import isfile, split, join from copy import deepcopy diff --git a/Lib/unittest/main.py b/Lib/unittest/main.py index 03963e0..d29a9f9 100644 --- a/Lib/unittest/main.py +++ b/Lib/unittest/main.py @@ -3,7 +3,6 @@ import sys import argparse import os -import warnings from . import loader, runner from .signals import installHandler |
