ipython/ipython — pull request #2088 by bfroehle (2012-07-03 17:09:00+00:00)
Title: Fix Python 3.2 test failures (ResourceWarnings from unclosed files with -Wd).

To fix the test errors in gh-2083, it was necessary to replace one instance of
`exec compile(open(..., 'rb').read(), ...) in ...` with
```
with open(..., 'rb') as f:
exec compile(f.read(), ...) in ...
```

There are lots of other uses of this pattern (just a read, no explicit close) in IPython, but I have not addressed them here.