--- a/cwconfig.py Mon Jul 05 17:02:11 2010 +0200
+++ b/cwconfig.py Mon Jul 05 17:02:39 2010 +0200
@@ -131,6 +131,7 @@
Directory where pid files will be written
"""
+
__docformat__ = "restructuredtext en"
_ = unicode
@@ -987,12 +988,12 @@
@cached
def instance_md5_version(self):
- import md5
+ import hashlib
infos = []
for pkg in self.cubes():
version = self.cube_version(pkg)
infos.append('%s-%s' % (pkg, version))
- return md5.new(';'.join(infos)).hexdigest()
+ return hashlib.md5(';'.join(infos)).hexdigest()
def load_configuration(self):
"""load instance's configuration files"""