(self, linebuf)
return empty, scanline
Check if the given line buffer starts with a line number.
Check if the given line buffer starts with a line number.
Check if the given line buffer starts with a line number .
def check_number_start(self, linebuf):
        """Check if the given line buffer starts with a line number."""
        # get the new line number
        linebuf.seek(1)
        scanline = self.lister.detokenise_line_number(linebuf)
        c = linebuf.skip_blank_read()
        # check if linebuf is an empty line after the line number
        empty = (c in tk.END_LINE)
        # check if we start with a number
        if c in tk.NUMBER:
            raise error.BASICError(error.STX)
        return empty, scanline
def check_number_start ( self , linebuf ) : # get the new line number linebuf . seek ( 1 ) scanline = self . lister . detokenise_line_number ( linebuf ) c = linebuf . skip_blank_read ( ) # check if linebuf is an empty line after the line number empty = ( c in tk . END_LINE ) # check if we start with a number if c in tk . NUMBER : raise error . BASICError ( error . STX ) return empty , scanline