-def create_hash (lfiles, key, testfn, basedict = None):
- for f in lfiles.keys():
- try:
- file_handle = utils.open_file(f)
- except CantOpenError:
- continue
-
- # Check hash
- basedict[f]['%ssum' % key] = testfn(file_handle)
- file_handle.close()
-
-
-################################################################################
-