ipython/ipython — pull request #3183 by minrk (2013-04-15 20:50:54+00:00)
Title: check prev_data.syntax_stack attribute before reading it

rather than just checking whether prev_data is non-None.

closes #3128