From a834386c144b825370f46c95670e9cf7b2939af6 Mon Sep 17 00:00:00 2001 From: Maria Knorps Date: Wed, 24 Jan 2024 09:00:25 +0100 Subject: [PATCH] Rename regular_imports -> all_imports as per @zz1874 suggestion from the code review --- PyPI_analysis/detect_imports.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(