pylint/utils/file_state.py
def collect_block_lines(self, msgs_store, module_node):
        """Walk the AST to collect block level options line numbers."""
        for msg, lines in self._module_msgs_state.items():
            self._raw_module_msgs_state[msg] = lines.copy()
        orig_state = self._module_msgs_state.copy()
        self._module_msgs_state = {}
        self._suppression_mapping = {}
        self._effective_max_line_number = module_node.tolineno
        self._collect_block_lines(msgs_store, module_node, orig_state)
def collect_block_lines(self, msgs_store, module_node):
        for msg, lines in self._module_msgs_state.items():
            self._raw_module_msgs_state[msg] = lines.copy()
        orig_state = self._module_msgs_state.copy()
        self._module_msgs_state = {}
        self._suppression_mapping = {}
        self._effective_max_line_number = module_node.tolineno
        self._collect_block_lines(msgs_store, module_node, orig_state)
def collect_block_lines ( self , msgs_store , module_node ) : for msg , lines in self . _module_msgs_state . items ( ) : self . _raw_module_msgs_state [ msg ] = lines . copy ( ) orig_state = self . _module_msgs_state . copy ( ) self . _module_msgs_state = { } self . _suppression_mapping = { } self . _effective_max_line_number = module_node . tolineno self . _collect_block_lines ( msgs_store , module_node , orig_state )
Walk the AST to collect block level options line numbers.
Walk the AST to collect block level options line numbers .