# HG changeset patch # User Matt Mackall # Date 2011-09-29 22:15:54 # Node ID fb1dcd2aae2a215bc452dff2fe5ec97ac194531d # Parent 547da6115d1dc0528bad20351518cdf4a983385f largefiles: fix multistatement line diff --git a/hgext/largefiles/lfcommands.py b/hgext/largefiles/lfcommands.py --- a/hgext/largefiles/lfcommands.py +++ b/hgext/largefiles/lfcommands.py @@ -164,7 +164,8 @@ def _addchangeset(ui, rsrc, rdst, ctx, r fd = open(path, 'rb') data = fd.read() finally: - if fd: fd.close() + if fd: + fd.close() return context.memfilectx(f, data, 'l' in fctx.flags(), 'x' in fctx.flags(), renamed) else: