import repository from arizona
[raven.git] / lib / ravenlib / hash.py
1 import hashlib
2
3 def get_file_hash(fn):
4     """ get the SHA-1 hash of a file
5     """
6
7     return hashlib.sha1(open(fn,"rb").read()).hexdigest()
8