Mercurial > hg-stable
changeset 15407:ee112eb69d2a stable
misc: adding missing file close() calls
Spotted by Victor Stinner <victor.stinner@haypocalc.com>
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 03 Nov 2011 11:24:55 -0500 |
parents | a708b65baeb9 |
children | db8b0ee74025 |
files | mercurial/ignore.py mercurial/revlog.py mercurial/ui.py |
diffstat | 3 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/ignore.py Tue Nov 01 15:37:00 2011 -0500 +++ b/mercurial/ignore.py Thu Nov 03 11:24:55 2011 -0500 @@ -78,6 +78,7 @@ pats[f] = [] fp = open(f) pats[f], warnings = ignorepats(fp) + fp.close() for warning in warnings: warn("%s: %s\n" % (f, warning)) except IOError, inst: