summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/util.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-11-19 10:20:57 (GMT)
committerGitHub <noreply@github.com>2020-11-19 10:20:57 (GMT)
commit7d9d25dbedfffce61fc76bc7ccbfa9ae901bf56f (patch)
treef80e39bddf0850409d05425998ba39146d8702db /Lib/importlib/util.py
parentbf9d70a1a5255080b7a5e55f319dfffd5f20fdcd (diff)
downloadcpython-7d9d25dbedfffce61fc76bc7ccbfa9ae901bf56f.zip
cpython-7d9d25dbedfffce61fc76bc7ccbfa9ae901bf56f.tar.gz
cpython-7d9d25dbedfffce61fc76bc7ccbfa9ae901bf56f.tar.bz2
bpo-42403: Fix pyflakes warnings in importlib (GH-23396)
Remove unused imports and unused local variables.
Diffstat (limited to 'Lib/importlib/util.py')
-rw-r--r--Lib/importlib/util.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/importlib/util.py b/Lib/importlib/util.py
index 1e44843..98a0fa5 100644
--- a/Lib/importlib/util.py
+++ b/Lib/importlib/util.py
@@ -232,7 +232,6 @@ class _LazyModule(types.ModuleType):
# Figure out exactly what attributes were mutated between the creation
# of the module and now.
attrs_then = self.__spec__.loader_state['__dict__']
- original_type = self.__spec__.loader_state['__class__']
attrs_now = self.__dict__
attrs_updated = {}
for key, value in attrs_now.items():