Method: pylint.checkers.logging.LoggingChecker.visit_import
Calls: 609, Exceptions: 0, Paths: 2Back
Path 1: 590 calls (0.97)
Import (590)
1def visit_import(self, node: nodes.Import) -> None:
2 """Checks to see if this module uses Python's built-in logging."""
3 for module, as_name in node.names:
4 if module in self._logging_modules:
5 self._logging_names.add(as_name or module)
Path 2: 19 calls (0.03)
Import (19)
1def visit_import(self, node: nodes.Import) -> None:
2 """Checks to see if this module uses Python's built-in logging."""
3 for module, as_name in node.names:
4 if module in self._logging_modules:
5 self._logging_names.add(as_name or module)