--- sitemap_gen.py	(revision 36)
+++ sitemap_gen.py	(working copy)
@@ -62,7 +62,7 @@
 import fnmatch
 import glob
 import gzip
-import md5
+import hashlib
 import os
 import re
 import stat
@@ -425,7 +425,7 @@
     """ Output and count a warning.  Suppress duplicate warnings. """
     if text:
       text = encoder.NarrowText(text, None)
-      hash = md5.new(text).digest()
+      hash = hashlib.md5(text).digest()
       if not self._warns_shown.has_key(hash):
         self._warns_shown[hash] = 1
         print '[WARNING] ' + text
@@ -438,7 +438,7 @@
     """ Output and count an error.  Suppress duplicate errors. """
     if text:
       text = encoder.NarrowText(text, None)
-      hash = md5.new(text).digest()
+      hash = hashlib.md5(text).digest()
       if not self._errors_shown.has_key(hash):
         self._errors_shown[hash] = 1
         print '[ERROR] ' + text
@@ -648,8 +648,8 @@
     if not self.loc:
       return None
     if self.loc.endswith('/'):
-      return md5.new(self.loc[:-1]).digest()
-    return md5.new(self.loc).digest()
+      return hashlib.md5(self.loc[:-1]).digest()
+    return hashlib.md5(self.loc).digest()
   #end def MakeHash
 
   def Log(self, prefix='URL', level=3):
