[PATCH 3 of 4] scmutil: use context managers for file handles

Gregory Szorc gregory.szorc at gmail.com
Sat Jan 2 18:38:57 CST 2016


On Sat, Jan 2, 2016 at 4:27 PM, Adrian Buehlmann <adrian at cadifra.com> wrote:

> On 2016-01-03 00:38, Gregory Szorc wrote:
> > scmutil: use context managers for file handles
>
> Does this work on Windows for the pure case (that is, using posixfile
> from line 189 in pure/osutil.py)?
>

Nope :(

I should have tested this on Windows before I patchbombed...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20160102/1f7ba78e/attachment.html>


More information about the Mercurial-devel mailing list