ipython/ipython — pull request #6301 by takluyver (2014-08-13 18:03:36+00:00)
Title: Catch SyntaxError from tokenizing for traceback

I don't think there's an easy way to test this, but I've verified the fix by hand.

Closes gh-6300