pylint/checkers/format.py
def new_line(self, tokens, line_end, line_start):
        """a new line has been encountered, process it if necessary"""
        if _last_token_on_line_is(tokens, line_end, ";"):
            self.add_message("unnecessary-semicolon", line=tokens.start_line(line_end))

        line_num = tokens.start_line(line_start)
        line = tokens.line(line_start)
        if tokens.type(line_start) not in _JUNK_TOKENS:
            self._lines[line_num] = line.split("\n")[0]
        self.check_lines(line, line_num)
def new_line(self, tokens, line_end, line_start):
        """a new line has been encountered, process it if necessary"""
        if _last_token_on_line_is(tokens, line_end, ";"):
            self.add_message("unnecessary-semicolon", line=tokens.start_line(line_end))

        line_num = tokens.start_line(line_start)
        line = tokens.line(line_start)
        if tokens.type(line_start) not in _JUNK_TOKENS:
            self._lines[line_num] = line.split("\n")[0]
        self.check_lines(line, line_num)
def new_line ( self , tokens , line_end , line_start ) : if _last_token_on_line_is ( tokens , line_end , ";" ) : self . add_message ( "unnecessary-semicolon" , line = tokens . start_line ( line_end ) ) line_num = tokens . start_line ( line_start ) line = tokens . line ( line_start ) if tokens . type ( line_start ) not in _JUNK_TOKENS : self . _lines [ line_num ] = line . split ( "\n" ) [ 0 ] self . check_lines ( line , line_num )
a new line has been encountered, process it if necessary
a new line has been encountered process it if necessary