def _hashfile(self,filename,blocksize=<NUM_LIT>):
logger.debug("<STR_LIT>"%(filename))<EOL>hasher=hashlib.sha256()<EOL>afile=open(filename,'<STR_LIT:rb>')<EOL>buf=afile.read(blocksize)<EOL>while len(buf) > <NUM_LIT:0>:<EOL><INDENT>hasher.update(buf)<EOL>buf = afile.read(blocksize)<EOL><DEDENT>return hasher.hexdigest()<EOL>
Hashes the file and returns hash