File fix_md5_hashlib.patch of Package apache2-mod_python

diff -ur mod_python-3.3.1/lib/python/mod_python/importer.py mod_python-3.3.1_fixed/lib/python/mod_python/importer.py
--- mod_python-3.3.1/lib/python/mod_python/importer.py	2006-12-03 10:14:06.000000000 +0100
+++ mod_python-3.3.1_fixed/lib/python/mod_python/importer.py	2010-05-06 16:35:56.000000000 +0200
@@ -29,7 +29,7 @@
 import types
 import pdb
 import imp
-import md5
+from hashlib import md5
 import time
 import string
 import StringIO
@@ -969,7 +969,7 @@
         # name which is a filesystem path. Hope MD5 hex
         # digest is okay.
 
-        return self._prefix + md5.new(file).hexdigest()
+        return self._prefix + md5(file).hexdigest()
 
 
 _global_modules_cache = _ModuleCache()
openSUSE Build Service is sponsored by