]> granicus.if.org Git - python/commit
When raising a SyntaxError, make a best-effort attempt to set the
authorFred Drake <fdrake@acm.org>
Tue, 15 Aug 2000 15:49:44 +0000 (15:49 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 15 Aug 2000 15:49:44 +0000 (15:49 +0000)
commitdcf08e0dfe1a0c7886c59cb19b5d7cd50732cacc
treea6a84bebbd7295de4d633f607f615031d0676d37
parent83cb7973802441f1f6c7115bc8eb83d64534b853
When raising a SyntaxError, make a best-effort attempt to set the
filename and lineno attributes, but do not mask the SyntaxError if we
fail.

This is part of what is needed to close SoruceForge bug #110628
(Jitterbug PR#278).

Wrap a long line to fit in under 80 columns.
Python/compile.c