(self, infile=None, lineno=None)
return "\"%s\", line %d: " % (infile, lineno)
Emit a C-compiler-like, Emacs-friendly error-message leader.
Emit a C-compiler-like, Emacs-friendly error-message leader.
Emit a C - compiler - like Emacs - friendly error - message leader .
def error_leader(self, infile=None, lineno=None):
        "Emit a C-compiler-like, Emacs-friendly error-message leader."
        if infile is None:
            infile = self.infile
        if lineno is None:
            lineno = self.lineno
        return "\"%s\", line %d: " % (infile, lineno)
def error_leader ( self , infile = None , lineno = None ) : if infile is None : infile = self . infile if lineno is None : lineno = self . lineno return "\"%s\", line %d: " % ( infile , lineno )