diff --git a/PyPI_analysis/detect_imports.py b/PyPI_analysis/detect_imports.py index 8bf9d57b..0ba1fefd 100644 --- a/PyPI_analysis/detect_imports.py +++ b/PyPI_analysis/detect_imports.py @@ -259,7 +259,7 @@ def docstring(node: ast.AST): ) } - def regular_imports(node: ast.AST): + def all_imports(node: ast.AST): if isinstance(node, ast.Import): logger.debug(ast.dump(node)) for alias in node.names: @@ -294,7 +294,7 @@ def regular_imports(node: ast.AST): yield from alternative_imports(node) yield from dynamic_imports(node) yield from docstring(node) - yield from regular_imports(node) + yield from all_imports(node) def parse_notebook_file(