ipython/ipython — pull request #1229 by takluyver (2012-01-04 21:16:33+00:00)
Title: Fix display of SyntaxError in Python 3

Closes #1225

The code handling exceptions is quite old, and I've cleaned it up a bit. There may be more cleanup that can be done.

The current situation with exceptions:

- String exceptions were removed in Python 2.6, so we no longer need to worry about them.
- In Python 2.6 & 2.7, any old style class can be used as an exception.
- New style classes used as exceptions must inherit from BaseException (on Python 3, this is therefore all exceptions)