]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport Tim's checkin 1.26 (patch probably by Michael Hudson, not Hundson):
authorThomas Wouters <thomas@python.org>
Wed, 27 Jun 2001 14:07:50 +0000 (14:07 +0000)
committerThomas Wouters <thomas@python.org>
Wed, 27 Jun 2001 14:07:50 +0000 (14:07 +0000)
commitcde43be1051513a72e7d6cdf5a9a993c6ca9fe8e
tree12efe83bdf3d9c79c61342a5f513fe26af2e4dec
parent671e257d8d46e6e696435d3f029f4538dea93456
Backport Tim's checkin 1.26 (patch probably by Michael Hudson, not Hundson):

SF bug 431772:  traceback.print_exc() causes traceback
Patch from Michael Hundson.
format_exception_only() blew up when trying to report a SyntaxError
from a string input (line is None in this case, but it assumed a string).
Lib/traceback.py