Package: python-support
Severity: normal
Tags: patch

Problem:
/usr/bin/pysupport-movemodules:8: DeprecationWarning: the md5 module is
deprecated; use hashlib instead
  import os,os.path,md5,re,sys

I'm attaching a patch that fix this problem, but don't solve it in python 2.5, a
python version checking is needed.

Thanks

-- 
Marco Rodrigues

http://Marco.Tondela.org
--- /usr/bin/pysupport-movemodules	2009-02-24 17:59:59.000000000 +0000
+++ /home/kmos/packages/pythonsupport-movemodules.new	2009-03-10 21:05:08.000000000 +0000
@@ -5,7 +5,8 @@
 # See COPYING for details
 
 from optparse import OptionParser
-import os,os.path,md5,re,sys
+import os,os.path,re,sys
+from hashlib import md5
 
 sourcepath='usr/share/python-support'
 extensionpath='usr/lib/python-support'

Reply via email to