Switch to unified view

a/Allura/allura/lib/gravatar.py b/Allura/allura/lib/gravatar.py
...
...
12
12
13
    """
13
    """
14
    match = _wrapped_email.match(email)
14
    match = _wrapped_email.match(email)
15
    if match:
15
    if match:
16
        email = match.group(1)
16
        email = match.group(1)
17
    return hashlib.md5(email.strip().lower()).hexdigest()
17
    return hashlib.md5(email.strip().lower().encode('utf8')).hexdigest()
18
18
19
def url(email=None, gravatar_id=None, **kw):
19
def url(email=None, gravatar_id=None, **kw):
20
    """Build a complete gravatar URL with our favorite defaults.
20
    """Build a complete gravatar URL with our favorite defaults.
21
21
22
    Keyword Arguments:
22
    Keyword Arguments: