]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Made the 'info' argument to SyntaxError optional, so phase-2 syntax
authorGuido van Rossum <guido@python.org>
Fri, 5 Sep 1997 19:00:56 +0000 (19:00 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 5 Sep 1997 19:00:56 +0000 (19:00 +0000)
commitf394f56c2bda5a3055b1f08e17882dfa39bbdf34
treeb02c5900e933c73efd6919b7df24a4ca6ec93795
parent49bb0e32a03c056a42df5c8d90347db19d3cb2d4
Made the 'info' argument to SyntaxError optional, so phase-2 syntax
errors are handled (these gave ``TypeError: not enough arguments'').

Also changed its __str__() to correct a typo (missing self.) and
return str(self.msg) to ensure the result is always string.

Also changed the default __str__ to simply return str(self.args).
Lib/exceptions.py