##// END OF EJS Templates
misc: adding missing file close() calls...
Matt Mackall -
r15407:ee112eb6 stable
parent child Browse files
Show More
@@ -78,6 +78,7 b' def ignore(root, files, warn):'
78 78 pats[f] = []
79 79 fp = open(f)
80 80 pats[f], warnings = ignorepats(fp)
81 fp.close()
81 82 for warning in warnings:
82 83 warn("%s: %s\n" % (f, warning))
83 84 except IOError, inst:
@@ -800,6 +800,7 b' class revlog(object):'
800 800 readahead = max(65536, length)
801 801 df.seek(offset)
802 802 d = df.read(readahead)
803 df.close()
803 804 self._addchunk(offset, d)
804 805 if readahead > length:
805 806 return d[:length]
@@ -79,6 +79,7 b' class ui(object):'
79 79
80 80 try:
81 81 cfg.read(filename, fp, sections=sections, remap=remap)
82 fp.close()
82 83 except error.ConfigError, inst:
83 84 if trusted:
84 85 raise
General Comments 0
You need to be logged in to leave comments. Login now