##// END OF EJS Templates
subrepo: ensure "close()" execution at the end of "_calcfilehash()"...
FUJIWARA Katsunori -
r21887:9aaffb22 default
parent child Browse files
Show More
@@ -35,7 +35,9 b' def _calcfilehash(filename):'
35 35 data = ''
36 36 if os.path.exists(filename):
37 37 fd = open(filename, 'rb')
38 try:
38 39 data = fd.read()
40 finally:
39 41 fd.close()
40 42 return util.sha1(data).hexdigest()
41 43
General Comments 0
You need to be logged in to leave comments. Login now