def md5sum_is_current(src_file):
 src_md5 = get_md5sum(src_file)
 src_md5_file = (src_file + '.md5')
 if os.path.exists(src_md5_file):
  with open(src_md5_file, 'r') as file_checksum:
   ref_md5 = file_checksum.read()
  return (src_md5 == ref_md5)
 return False

def md5sum_is_current ( src_file ) : src_md5 = get_md5sum ( src_file ) src_md5_file = ( src_file + '.md5' ) if os . path . exists ( src_md5_file ) : with open ( src_md5_file , 'r' ) as file_checksum : ref_md5 = file_checksum . read ( ) return ( src_md5 == ref_md5 ) return False
checks whether src_file has the same md5 hash as the one on disk .