Show More
@@ -31,7 +31,7 b' def _getstorehashcachename(remotepath):' | |||||
31 | def _calcfilehash(filename): |
|
31 | def _calcfilehash(filename): | |
32 | data = '' |
|
32 | data = '' | |
33 | if os.path.exists(filename): |
|
33 | if os.path.exists(filename): | |
34 | fd = open(filename) |
|
34 | fd = open(filename, 'rb') | |
35 | data = fd.read() |
|
35 | data = fd.read() | |
36 | fd.close() |
|
36 | fd.close() | |
37 | return util.sha1(data).hexdigest() |
|
37 | return util.sha1(data).hexdigest() |
General Comments 0
You need to be logged in to leave comments.
Login now