ipython/ipython — pull request #1207 by minrk (2011-12-24 20:48:20+00:00)
Title: fix loadpy duplicating newlines

`%loadpy script.py` iterates through lines, but then does `os.linesep.join(lines)`, thus duplicating all newlines. This uses `splitlines()`, so the content matches that fetched from a url - list of lines without endings.

closes #1204