ipython/ipython — pull request #1716 by takluyver (2012-05-09 21:05:33+00:00)
Title: Fix for fake filenames in verbose traceback

While testing PR #1715, I noticed that the verbose traceback mode wasn't displaying variables as it should. This was because the fake filenames we use like `` were being treated as real filenames. We relied on `os.path.abspath` throwing an `OSError` for them, which it no longer does.

This fix assumes that any filename enclosed by `<>` should be treated as not a real file. It may well be possible to create real files with such names, but it would be very bizarre, and you wouldn't be able to import them.