Skip to content

Commit

Permalink
Rename regular_imports -> all_imports as per @zz1874 suggestion from …
Browse files Browse the repository at this point in the history
…the code review
  • Loading branch information
mknorps committed Jan 24, 2024
1 parent f0dc002 commit a834386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PyPI_analysis/detect_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit a834386

Please sign in to comment.