--- /dev/null
+Return-Path: <wking@tremily.us>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 35D96431FD2\r
+ for <notmuch@notmuchmail.org>; Sat, 5 Apr 2014 10:31:38 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001]\r
+ autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id l2AZvDVQt2YO for <notmuch@notmuchmail.org>;\r
+ Sat, 5 Apr 2014 10:31:32 -0700 (PDT)\r
+Received: from qmta09.westchester.pa.mail.comcast.net\r
+ (qmta09.westchester.pa.mail.comcast.net [76.96.62.96])\r
+ by olra.theworths.org (Postfix) with ESMTP id 66B17431FB6\r
+ for <notmuch@notmuchmail.org>; Sat, 5 Apr 2014 10:31:26 -0700 (PDT)\r
+Received: from omta13.westchester.pa.mail.comcast.net ([76.96.62.52])\r
+ by qmta09.westchester.pa.mail.comcast.net with comcast\r
+ id mFjN1n00517dt5G59HXR9K; Sat, 05 Apr 2014 17:31:25 +0000\r
+Received: from odin.tremily.us ([24.18.63.50])\r
+ by omta13.westchester.pa.mail.comcast.net with comcast\r
+ id mHXQ1n00o152l3L3ZHXRQb; Sat, 05 Apr 2014 17:31:25 +0000\r
+Received: from mjolnir.tremily.us (unknown [192.168.0.140])\r
+ by odin.tremily.us (Postfix) with ESMTPS id AFEE91103C14;\r
+ Sat, 5 Apr 2014 10:31:24 -0700 (PDT)\r
+Received: (nullmailer pid 16915 invoked by uid 1000);\r
+ Sat, 05 Apr 2014 17:31:15 -0000\r
+From: "W. Trevor King" <wking@tremily.us>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 2/7] doc/mkdocdeps.py: Use "with" statement for the output\r
+ file\r
+Date: Sat, 5 Apr 2014 10:31:06 -0700\r
+Message-Id:\r
+ <543aee63407956e60f85dc11a2d25855e98c10c3.1396718720.git.wking@tremily.us>\r
+X-Mailer: git-send-email 1.9.1.353.gc66d89d\r
+In-Reply-To: <cover.1396718720.git.wking@tremily.us>\r
+References: <cover.1396718720.git.wking@tremily.us>\r
+In-Reply-To: <cover.1396718720.git.wking@tremily.us>\r
+References: <cover.1396718720.git.wking@tremily.us>\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;\r
+ s=q20140121; t=1396719085;\r
+ bh=EUaDylg69IHiWfHMYQnINVTyWhPaW7ppXPGfzYThfBo=;\r
+ h=Received:Received:Received:Received:From:To:Subject:Date:\r
+ Message-Id;\r
+ b=bQ/ph/jzoJ9yErrGs2y7J9RWFjWbJsPf7/gQxVFjRXYBds2oVj3GlRbNYYNldQa7j\r
+ JfnTp1FB6MHtHQHzKRWg28KsNk2hORs3/m/7qQf2Y4b18UXWuzCFv990W/BBcJ5e2p\r
+ E1g2ZzvXvABUBPa9shUpIJQ9VkG/tSpzaGV67GzbqOiks2kZ9CyROyNY77Oksikpb/\r
+ oLMqw1PKPP5FJioYpOYvyHBA9umOpIAjcIkt0tcdPi3nYUFcbU9JM8fIj94ktpTGFc\r
+ hvzvuU4QlmyRgObhSED91QAxlc5Aw31KbCckh6xrzUG9cb+08iJeYWhtaQhMof6zaj\r
+ VJBT8K2AhksxA==\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 05 Apr 2014 17:31:38 -0000\r
+\r
+Before this patch, the open was unnecessarily early and relied on the\r
+process cleanup to close. Neither one of these was a real problem,\r
+but PEP 343's context managers (which landed in Python 2.5) make\r
+proper cleanup very easy.\r
+\r
+[1]: http://legacy.python.org/dev/peps/pep-0343/\r
+---\r
+ doc/mkdocdeps.py | 6 +++---\r
+ 1 file changed, 3 insertions(+), 3 deletions(-)\r
+\r
+diff --git a/doc/mkdocdeps.py b/doc/mkdocdeps.py\r
+index de1cbb8..b87fe3e 100644\r
+--- a/doc/mkdocdeps.py\r
++++ b/doc/mkdocdeps.py\r
+@@ -9,10 +9,10 @@ import conf\r
+ \r
+ roff_files = []\r
+ rst_files = []\r
+-out=open(outfile,'w')\r
+ for page in conf.man_pages:\r
+ rst_files = rst_files + ["{0:s}/{1:s}.rst".format(srcdir,page[0])]\r
+ roff_files = roff_files + ["{0:s}/man/{1:s}.{2:d}".format(builddir,page[0],page[4])]\r
+ \r
+-out.write ('MAN_ROFF_FILES := ' + ' \\\n\t'.join(roff_files)+'\n')\r
+-out.write ('MAN_RST_FILES := ' + ' \\\n\t'.join(rst_files)+'\n')\r
++with open(outfile, 'w') as out:\r
++ out.write('MAN_ROFF_FILES := ' + ' \\\n\t'.join(roff_files) + '\n')\r
++ out.write('MAN_RST_FILES := ' + ' \\\n\t'.join(rst_files) + '\n')\r
+-- \r
+1.9.1.353.gc66d89d\r
+\r