Package: cycle Version: 0.3.1-7 Severity: minor Tags: patch After lenny > squeeze upgrade 'cycle' prints this at every startup:
/usr/share/cycle/save_load.py:15: DeprecationWarning: the md5 module is deprecated; use hashlib instead import os, os.path , cPickle, md5 The attached patch eliminates this message. Gabor -- System Information: Debian Release: 6.0.4 APT prefers stable APT policy: (990, 'stable'), (500, 'proposed-updates') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores) Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/bash Versions of packages cycle depends on: ii python 2.6.6-3+squeeze6 interactive high-level object-orie ii python-support 1.0.10 automated rebuilding support for P ii python-wxgtk2.6 2.6.3.2.2-5+b1 wxWidgets Cross-platform C++ GUI t cycle recommends no packages. cycle suggests no packages. -- no debconf information
--- save_load.py.orig 2005-09-15 07:14:19.000000000 +0200 +++ save_load.py 2012-02-05 08:22:35.821998312 +0100 @@ -12,7 +12,7 @@ message='.*rotor module', module=__name__) import wx -import os, os.path , cPickle, md5 +import os, os.path , cPickle, hashlib import cal_year try: import rotor @@ -23,7 +23,7 @@ """ Save the contents of our document to disk. """ objSave=[] - m=md5.new() + m=hashlib.md5() m.update(passwd) rt=rotor.newrotor(m.digest()) objSave.append(['period', cal_year.cycle.period]) @@ -59,7 +59,7 @@ p, f_name=get_f_name(file) if os.path.isfile(f_name): - m=md5.new() + m=hashlib.md5() m.update(passwd) rt=rotor.newrotor(m.digest()) f=open(f_name,"rb")