Thanks to Matt Mullins for pointing this bug out.
Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com>
import datetime
import re
import smtplib
-import md5
+import hashlib
pwd = os.path.dirname( os.path.realpath( __file__ ) )
websiteline = f.readline().strip()
timestamp = f.readline().strip()
commentbody = makeParas(map(str.strip, f.readlines()))
- m = md5.new()
+ m = hashlib.md5()
m.update(emailline.lower())
gravatar = "http://www.gravatar.com/avatar/%s?s=48&d=identicon" % str(m.hexdigest())
#timestamp = datetime.datetime.fromtimestamp(os.stat(filepath).st_mtime).isoformat()