(self, filepath)
return f_hash
Generates checksum of given file.

    Args:
      filepath: String of filepath.

    Returns:
      f_hash: SHA1 hash for the file provided in filepath.
Generates checksum of given file.
Generates checksum of given file .
def GetFileChecksum(self, filepath):
    """Generates checksum of given file.

    Args:
      filepath: String of filepath.

    Returns:
      f_hash: SHA1 hash for the file provided in filepath.
    """
    f_content = open(filepath, 'r').read()
    f_hash = hashlib.sha1(f_content).hexdigest()
    return f_hash
def GetFileChecksum ( self , filepath ) : f_content = open ( filepath , 'r' ) . read ( ) f_hash = hashlib . sha1 ( f_content ) . hexdigest ( ) return f_hash