def write_stored_checksum(target):
 with open(target, 'r') as img_file:
  checksum = utils.hash_file(img_file)
 write_stored_info(target, field='sha1', value=checksum)

def write_stored_checksum ( target ) : with open ( target , 'r' ) as img_file : checksum = utils . hash_file ( img_file ) write_stored_info ( target , field = 'sha1' , value = checksum )
write a checksum to disk for a file in _base .