ipython/ipython — pull request #5912 by ivanov (2014-05-27 23:43:43+00:00)
Title: tiny refactor to nbconvert ansi filter

was looking at this code for another project, and was irked by what I saw
here, so just cleaned it up.