cwconfig.py
changeset 5890 141b935a38fc
parent 5818 6d8c479fcd98
parent 5885 5d908f1a7659
child 5917 64198285352e
--- 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"""