10000 gh-105407: Remove unused imports in the stdlib (#105411) · python/cpython@94d5f98 · GitHub
[go: up one dir, main page]

Skip to content

Commit 94d5f98

Browse files
authored
gh-105407: Remove unused imports in the stdlib (#105411)
1 parent d1b0015 commit 94d5f98

File tree

5 files changed

+0
-6
lines changed

5 files changed

+0
-6
lines changed

Lib/configparser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@
147147
import os
148148
import re
149149
import sys
150-
import warnings
151150

152151
__all__ = ("NoSectionError", "DuplicateOptionError", "DuplicateSectionError",
153152
"NoOptionError", "InterpolationError", "InterpolationDepthError",

Lib/importlib/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@
5454
# Fully bootstrapped at this point, import whatever you like, circular
5555
# dependencies and startup overhead minimisation permitting :)
5656

57-
import warnings
58-
5957

6058
# Public API #########################################################
6159

Lib/importlib/metadata/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import functools
1313
import itertools
1414
import posixpath
15-
import contextlib
1615
import collections
1716
import inspect
1817

Lib/turtle.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@
104104
import time
105105
import inspect
106106
import sys
107-
import warnings
108107

109108
from os.path import isfile, split, join
110109
from copy import deepcopy

Lib/unittest/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import sys
44
import argparse
55
import os
6-
import warnings
76

87
from . import loader, runner
98
from .signals import installHandler

0 commit comments

Comments
 (0)
0