return hexdigest of hashvalue for this file.
def computehash(self, hashtype="md5", chunksize=524288):
origin: path.local
where:
exceptions that might appear during execution:
function source:
def computehash(self, hashtype="md5", chunksize=524288):
""" return hexdigest of hashvalue for this file. """
hash = self._gethashinstance(hashtype)
f = self.open('rb')
try:
while 1:
buf = f.read(chunksize)
if not buf:
return hash.hexdigest()
hash.update(buf)
finally:
f.close()
called in /home/johnny/projects/merlinux/py/dist/py/path/local/testing/test_local.py
traceback path.local.computehash.0
called in /home/johnny/projects/merlinux/py/dist/py/path/local/testing/test_local.py
traceback path.local.computehash.1
called in /home/johnny/projects/merlinux/py/dist/py/test/raises.py