ipython/ipython — pull request #2574 by dkua (2012-11-13 19:39:24+00:00)
Title: Fix #2244

Reformatted the warning message as per the issue and changed some of the original logic to be more readable as advised by Fernando.