Method: pylint.checkers.misc.EncodingChecker.process_module
Calls: 1105, Exceptions: 0, Paths: 2Back
Path 1: 993 calls (0.9)
Module (993)
1def process_module(self, node: nodes.Module) -> None:
2 """Inspect the source file to find encoding problem."""
3 encoding = node.file_encoding if node.file_encoding else "ascii"
4
5 with node.stream() as stream:
6 for lineno, line in enumerate(stream):
7 self._check_encoding(lineno + 1, line, encoding)
Path 2: 112 calls (0.1)
Module (112)
1def process_module(self, node: nodes.Module) -> None:
2 """Inspect the source file to find encoding problem."""
3 encoding = node.file_encoding if node.file_encoding else "ascii"
4
5 with node.stream() as stream:
6 for lineno, line in enumerate(stream):
7 self._check_encoding(lineno + 1, line, encoding)