From: Brett Parker <iDunno@sommitrealweird.co.uk>
Date: Sat, 5 Mar 2011 18:44:07 +0000 (+0000)
Subject: Update so that we don't get a warning in python 2.6 and above, where the md5 module... 
X-Git-Url: https://git.sommitrealweird.co.uk/rss2maildir.git/commitdiff_plain/ea9637da6215483da6f4ad236a4291dbad6bd698

Update so that we don't get a warning in python 2.6 and above, where the md5 module has been depricated
---

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