def _Hash(content):
 h = hashlib.sha1(content).hexdigest()
 return _FormatHash(h)

def _Hash ( content ) : h = hashlib . sha1 ( content ) . hexdigest ( ) return _FormatHash ( h )
compute the sha1 hash of the content .