--- a/cwconfig.py Mon Jul 05 15:59:14 2010 +0200
+++ b/cwconfig.py Mon Jul 05 18:00:33 2010 +0200
@@ -131,6 +131,7 @@
Directory where pid files will be written
"""
+
__docformat__ = "restructuredtext en"
_ = unicode
@@ -985,12 +986,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"""