ipython/ipython — pull request #2432 by bfroehle (2012-09-26 16:41:24+00:00)
Title: Revert #1831, the `__file__` injection in safe_execfile / safe_execfile_ipy.

This reverts commit 2717febad3ccc64ff8f6d212c70cd73d1fb1e1a0, reversing
changes made to ea4f608cc27db0de063ed6f40593ec83db171b8c.

Pull request #1831 has been the source of a lot of grief:
* #2279
* #2429

In general the patch was inappropriate because it:
1. Fails to properly restore the context, by setting __file__ to None rather than deleting it.
2. Sets `__file__` in the wrong dictionary (`self.user_ns` rather than `where[0]`).

I suggest that we revert pull request #1831 and reopen the original issue (#1814).