From ea9637da6215483da6f4ad236a4291dbad6bd698 Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Sat, 5 Mar 2011 18:44:07 +0000 Subject: [PATCH] Update so that we don't get a warning in python 2.6 and above, where the md5 module has been depricated --- rss2maildir.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rss2maildir.py b/rss2maildir.py index 67121c5..a1e8819 100755 --- a/rss2maildir.py +++ b/rss2maildir.py @@ -39,7 +39,11 @@ from optparse import OptionParser from ConfigParser import SafeConfigParser from base64 import b64encode -import md5 + +if sys.version_info[0] == 2 and sys.version_info[1] >= 6: + import hashlib as md5 +else: + import md5 import cgi import dbm -- 2.39.5