| 116 |
| 117 |
| 118 |
| 119 |
| 120 |
| 121 |
| 122 |
| 123 |
| 124 |
| 125 |
| 126 |
| 127 | |
def shahexdigest(self, cache=[]): |
""" return sha hexdigest for files contained in package. """ |
if cache: |
return cache[0] |
from sha import sha |
sum = sha() |
|
|
-> for x in self._iterfiles(): |
sum.update(x.read()) |
cache.append(sum.hexdigest()) |
return cache[0] | |