]> granicus.if.org Git - python/commit
Fix suggested by Sjoerd (long ago!) to get a better error message when
authorGuido van Rossum <guido@python.org>
Tue, 29 Sep 1998 15:57:42 +0000 (15:57 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 29 Sep 1998 15:57:42 +0000 (15:57 +0000)
commitf984a6526711513e1af035d2fcee545c51ab51fe
treef52398a3475e5bf0b5815175ad3a8e0d3899a737
parentdc492e6738a97d3ff55fb98295660e0edf8a51fa
Fix suggested by Sjoerd (long ago!) to get a better error message when
there's a syntax error.  (In particular, display the correct
filename).  This changes the API: if there's a syntax error, the
function now returns normally after dumping the error to sys.stderr.
I changed Sjoerd's use of string.join(string.split(...)) with
string.replace().
Lib/py_compile.py