def hash_from_file(file_path):
 with open(file_path, 'rb') as f:
  file_content = f.read()
 return hash_from_code(file_content)

def hash_from_file ( file_path ) : with open ( file_path , 'rb' ) as f : file_content = f . read ( ) return hash_from_code ( file_content )
return the md5 hash of a file .