Factor out Gravatar hash calculation

(imported from commit 29872722fb4856773d98fc987a1e2d6eb99ad8b2)
This commit is contained in:
Keegan McAllister
2012-10-16 22:07:35 -04:00
parent e843427e6c
commit 81f0d61c3b
3 changed files with 9 additions and 3 deletions

5
zephyr/lib/avatar.py Normal file
View File

@@ -0,0 +1,5 @@
import hashlib
def gravatar_hash(email):
"""Compute the Gravatar hash for an email address."""
return hashlib.md5(email.lower()).hexdigest()