ipython/ipython — pull request #1919 by tkf (2012-06-11 21:25:59+00:00)
Title: Use oinspect in CodeMagics._find_edit_target

inspect.getabsfile and inspect.getsourcelines are replaced by find_file and find_source_lines in IPython.core.oinspect.

Except the change of the functions, changed code is roughly equivalent to the previous one. But the changed code tries to find method in non-fake module more than previous one. I think it's OK since the failed case is caught in the next `if filename is None:` block anyway. As I am not completely sure what _find_edit_target (%edit) does, maybe there are something missing.