(self, filename, lineno)
return lineno
Check whether specified line seems to be executable.

        Return `lineno` if it is, 0 if not (e.g. a docstring, comment, blank
        line or EOF). Warning: testing is not comprehensive.
Check whether specified line seems to be executable.
Check whether specified line seems to be executable .
def checkline(self, filename, lineno):
        """Check whether specified line seems to be executable.

        Return `lineno` if it is, 0 if not (e.g. a docstring, comment, blank
        line or EOF). Warning: testing is not comprehensive.
        """
        # this method should be callable before starting debugging, so default
        # to "no globals" if there is no current frame
        frame = getattr(self, 'curframe', None)
        globs = frame.f_globals if frame else None
        line = linecache.getline(filename, lineno, globs)
        if not line:
            self.message('End of file')
            return 0
        line = line.strip()
        # Don't allow setting breakpoint at a blank line
        if (not line or (line[0] == '#') or
             (line[:3] == '"""') or line[:3] == "'''"):
            self.error('Blank or comment')
            return 0
        return lineno
def checkline ( self , filename , lineno ) : # this method should be callable before starting debugging, so default # to "no globals" if there is no current frame frame = getattr ( self , 'curframe' , None ) globs = frame . f_globals if frame else None line = linecache . getline ( filename , lineno , globs ) if not line : self . message ( 'End of file' ) return 0 line = line . strip ( ) # Don't allow setting breakpoint at a blank line if ( not line or ( line [ 0 ] == '#' ) or ( line [ : 3 ] == '"""' ) or line [ : 3 ] == "'''" ) : self . error ( 'Blank or comment' ) return 0 return lineno