From b4dea1b8d5445023689727de419493dc8b5d8418 Mon Sep 17 00:00:00 2001 From: "Hock, Martin" <martin.hock@fst.tu-darmstadt.de> Date: Wed, 11 Jan 2023 11:25:26 +0100 Subject: [PATCH] Revert "Adjust class function upper/lower case for ast." This reverts commit f89aeb383159fe9943c52c89fcb3a8d0fc313155 --- plotid/publish.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plotid/publish.py b/plotid/publish.py index 53ede90..fab060c 100644 --- a/plotid/publish.py +++ b/plotid/publish.py @@ -259,13 +259,13 @@ class Analyzer(ast.NodeVisitor): "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.""" for alias in node.names: self.stats["import"].append(alias.name) 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.""" self.stats["from"].append(str(node.module)) self.generic_visit(node) -- GitLab