Skip to content

Commit 7d9d25d

Browse files
authored
bpo-42403: Fix pyflakes warnings in importlib (GH-23396)
Remove unused imports and unused local variables.
1 parent bf9d70a commit 7d9d25d

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

Lib/importlib/abc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""Abstract base classes related to import."""
2-
from . import _bootstrap
32
from . import _bootstrap_external
43
from . import machinery
54
try:

Lib/importlib/machinery.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"""The machinery of importlib: finders, loaders, hooks, etc."""
22

3-
import _imp
4-
53
from ._bootstrap import ModuleSpec
64
from ._bootstrap import BuiltinImporter
75
from ._bootstrap import FrozenImporter

Lib/importlib/util.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ def __getattribute__(self, attr):
232232
# Figure out exactly what attributes were mutated between the creation
233233
# of the module and now.
234234
attrs_then = self.__spec__.loader_state['__dict__']
235-
original_type = self.__spec__.loader_state['__class__']
236235
attrs_now = self.__dict__
237236
attrs_updated = {}
238237
for key, value in attrs_now.items():

0 commit comments

Comments
 (0)