doc/mkdocdeps.py: Use "with" statement for the output file
authorW. Trevor King <wking@tremily.us>
Sat, 5 Apr 2014 15:47:33 +0000 (08:47 -0700)
committerW. Trevor King <wking@tremily.us>
Sat, 5 Apr 2014 15:55:20 +0000 (08:55 -0700)
commit543aee63407956e60f85dc11a2d25855e98c10c3
tree5156133b2571e72216e884c53879639086b0ef33
parent8d518408f2da8bc96ae3123f05791142da26b9bc
doc/mkdocdeps.py: Use "with" statement for the output file

Before this patch, the open was unnecessarily early and relied on the
process cleanup to close.  Neither one of these was a real problem,
but PEP 343's context managers (which landed in Python 2.5) make
proper cleanup very easy.

[1]: http://legacy.python.org/dev/peps/pep-0343/
doc/mkdocdeps.py