md5 is deprecated

Bug #390709 reported by gil
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
syslog-summary (Debian)
Fix Released
Unknown
syslog-summary (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: syslog-summary

Running jaunty and syslog-summary v 1.13-1

syslog-summary produces the following warning every time it runs:

/usr/bin/syslog-summary:44: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import sys, re, getopt, string, md5

The attached patch re-writes it to use hashlib instead of md5.

Revision history for this message
gil (gilbert-laycock) wrote :
Revision history for this message
Brian Murray (brian-murray) wrote :

Thanks for taking the time to report this bug and including a patch for it too. This package is sync'ed with Debian, subsequently it'd be quite helpful if you were to submit this bug and your patch upstream to Debian. You can learn more about how to forward bugs to Debian at https://wiki.ubuntu.com/Debian/Bugs.

Changed in syslog-summary (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
gil (gilbert-laycock) wrote :

I added a wishlist bug to the debian package

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=534451

(I couldn't make the "also affects distribution" link work here)

Note however that debian is still (in squeeze/sid) on python2.5 as the default python, so the md5 deprecation problem hasn't appeared there yet.

Changed in syslog-summary (Debian):
importance: Undecided → Unknown
status: New → Unknown
Changed in syslog-summary (Debian):
status: Unknown → Fix Released
Revision history for this message
David Futcher (bobbo) wrote :

This was fixed in Debian package version 1.14-1 which hit Ubuntu during Lucid and is now in Maverick. I will therefore mark this bug as "Fix Released". If this bug is still appearing for anyone, feel free to re-open this bug. Thanks alot!

tags: added: patch-accepted-upstream
Changed in syslog-summary (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.