shlex.error_leader(infile=None, lineno=None)
This method generates an error message leader in the format of a Unix C compiler error label; the format is '"%s", line %d: '
, where the %s
is replaced with the name of the current source file and the %d
with the current input line number (the optional arguments can be used to override these).
This convenience is provided to encourage shlex
users to generate error messages in the standard, parseable format understood by Emacs and other Unix tools.
Please login to continue.