Skip to content

Commit 3165d24

Browse files
authored
Merge pull request #26 from IBM/HandleDegenerateModules
Handle degenerate modules
2 parents ee566f6 + 9662020 commit 3165d24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

import_tracker/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def referenced_by(self, module_name: str) -> bool:
168168
attr
169169
for attr in vars(mod).values()
170170
if isinstance(attr, ModuleType)
171-
and attr.__spec__.name.startswith(ref_module_pkg)
171+
and attr.__name__.startswith(ref_module_pkg)
172172
and mod not in checked_modules
173173
]
174174
)

0 commit comments

Comments
 (0)