##// END OF EJS Templates
convert: fix a file descriptor leak...
Matt Harbison -
r39865:28626957 default
parent child Browse files
Show More
@@ -18,6 +18,7 b' from mercurial import ('
18 18 encoding,
19 19 error,
20 20 pycompat,
21 util,
21 22 )
22 23 from mercurial.utils import (
23 24 dateutil,
@@ -228,7 +229,7 b' class gnuarch_source(common.converter_so'
228 229 else:
229 230 mode = ''
230 231 else:
231 data = open(os.path.join(self.tmppath, name), 'rb').read()
232 data = util.readfile(os.path.join(self.tmppath, name))
232 233 mode = (mode & 0o111) and 'x' or ''
233 234 return data, mode
234 235
General Comments 0
You need to be logged in to leave comments. Login now