[PATCH 5 of 5 V2] streamclone: use context manager for writing files

Matt Mackall mpm at selenic.com
Mon Jan 11 16:58:34 CST 2016


On Tue, 2016-01-05 at 12:09 -0500, Augie Fackler wrote:
> On Sat, Jan 02, 2016 at 04:45:33PM -0800, Gregory Szorc wrote:
> > # HG changeset patch
> > # User Gregory Szorc <gregory.szorc at gmail.com>
> > # Date 1451776198 28800
> > #      Sat Jan 02 15:09:58 2016 -0800
> > # Node ID 3523527da243b2d150d54d77aa630b23b2e9ad7d
> > # Parent  438dce208879a651879d123d646c6782e3936f42
> > streamclone: use context manager for writing files
> 
> I'm a huge fan of this series. Are we okay with starting to use
> context managers for stuff like this?

Yes.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list