Skip to content
Snippets Groups Projects
Commit b4dea1b8 authored by Hock, Martin's avatar Hock, Martin
Browse files

Revert "Adjust class function upper/lower case for ast."

This reverts commit f89aeb38
parent f89aeb38
No related branches found
No related tags found
2 merge requests!65Release v0.3.0,!64New year developments
Pipeline #888987 passed
...@@ -259,13 +259,13 @@ class Analyzer(ast.NodeVisitor): ...@@ -259,13 +259,13 @@ class Analyzer(ast.NodeVisitor):
"from": [], "from": [],
} }
def visit_import(self, node: ast.Import) -> None: def visit_Import(self, node: ast.Import) -> None:
"""Get modules that are imported with the 'import' statement.""" """Get modules that are imported with the 'import' statement."""
for alias in node.names: for alias in node.names:
self.stats["import"].append(alias.name) self.stats["import"].append(alias.name)
self.generic_visit(node) self.generic_visit(node)
def visit_import_from(self, node: ast.ImportFrom) -> None: def visit_ImportFrom(self, node: ast.ImportFrom) -> None:
"""Get modules that are imported with the 'from X import Y' statement.""" """Get modules that are imported with the 'from X import Y' statement."""
self.stats["from"].append(str(node.module)) self.stats["from"].append(str(node.module))
self.generic_visit(node) self.generic_visit(node)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment