nagios-plugins: build check_radius needs libradius
[omd.git] / packages / mod_python / patches / 0006-hashlib-instead-of-md5.dif
bloba5b6a3124d5bf963654ec73f1c11e3f932772e0c
1 --- mod_python-3.3.1/lib/python/mod_python/importer.py
2 +++ mod_python-3.3.1/lib/python/mod_python/importer.py
3 @@ -29,7 +29,10 @@ import new
4  import types
5  import pdb
6  import imp
7 -import md5
8 +try:
9 +    from hashlib import md5
10 +except ImportError:
11 +    from md5 import md5
12  import time
13  import string
14  import StringIO
15 @@ -969,7 +972,7 @@ class _ModuleCache:
16          # name which is a filesystem path. Hope MD5 hex
17          # digest is okay.
19 -        return self._prefix + md5.new(file).hexdigest()
20 +        return self._prefix + md5(file).hexdigest()
23  _global_modules_cache = _ModuleCache()