minrk/ipython — comment on commit cd2b807954179c34e54bfb89e6fbb8df8752cc6e
File:  line 0
By juliantaylor:

you can make it one with contextlib.closing
http://docs.python.org/library/contextlib.html#contextlib.closing