summaryrefslogtreecommitdiffstats
path: root/lib/__init__.py
diff options
context:
space:
mode:
authorAamir Khan <syst3m.w0rm@gmail.com>2012-06-24 23:41:04 -0400
committerAamir Khan <syst3m.w0rm@gmail.com>2012-06-24 23:41:04 -0400
commitfe908c14aa9816eea5846279f647a6ea22fc482a (patch)
tree07104a7de0a7b3e9cbbdfd23113a7a6dd7a4295e /lib/__init__.py
parent826968df9c21f815cfc4a71dc7104c14e543e9e6 (diff)
downloadhyperkitty-fe908c14aa9816eea5846279f647a6ea22fc482a.tar.gz
hyperkitty-fe908c14aa9816eea5846279f647a6ea22fc482a.tar.xz
hyperkitty-fe908c14aa9816eea5846279f647a6ea22fc482a.zip
Removed unnecessary code : lib/
Diffstat (limited to 'lib/__init__.py')
-rw-r--r--lib/__init__.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/__init__.py b/lib/__init__.py
deleted file mode 100644
index aa5a3d9..0000000
--- a/lib/__init__.py
+++ /dev/null
@@ -1,14 +0,0 @@
-#-*- coding: utf-8 -*-
-
-from hashlib import md5
-import urllib
-
-
-def gravatar_url(email):
- '''Return a gravatar url for an email address'''
- size = 64
- default = "http://fedoraproject.org/static/images/" + \
- "fedora_infinity_%ix%i.png" % (size, size)
- query_string = urllib.urlencode({'s': size, 'd': default})
- identifier = md5(email).hexdigest()
- return 'http://www.gravatar.com/avatar/%s?%s' % (identifier, query_string)