Skip to content

Commit a3b489a

Browse files
Merge pull request #136 from r1chardj0n3s/rename-spec
Rename find_spec_result to module_spec
2 parents c4dd28e + be7c2e6 commit a3b489a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pip_check_reqs/common.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,17 @@ def _add_module(self, modname: str, lineno: int) -> None:
7676
if self._ignore_modules_function(modname):
7777
return
7878

79-
find_spec_result = importlib.util.find_spec(
79+
module_spec = importlib.util.find_spec(
8080
name=modname.split(".")[0],
8181
)
82-
if find_spec_result is None:
82+
if module_spec is None:
8383
# The component specified at this point is not installed.
8484
return
8585

86-
modpath = find_spec_result.origin
86+
modpath = module_spec.origin
8787
assert modpath is not None
8888
modpath_path = Path(modpath)
89-
modname = find_spec_result.name
89+
modname = module_spec.name
9090

9191
if modname not in self._modules:
9292
if modpath_path.is_file():

0 commit comments

Comments
 (0)