Show More
@@ -35,8 +35,10 b' def _calcfilehash(filename):' | |||
|
35 | 35 | data = '' |
|
36 | 36 | if os.path.exists(filename): |
|
37 | 37 | fd = open(filename, 'rb') |
|
38 | data = fd.read() | |
|
39 |
fd. |
|
|
38 | try: | |
|
39 | data = fd.read() | |
|
40 | finally: | |
|
41 | fd.close() | |
|
40 | 42 | return util.sha1(data).hexdigest() |
|
41 | 43 | |
|
42 | 44 | class SubrepoAbort(error.Abort): |
General Comments 0
You need to be logged in to leave comments.
Login now