Use hashlib instead of md5

Bug #338661 reported by Daniel Holbach
4
Affects Status Importance Assigned to Milestone
planet (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: planet

/var/lib/python-support/python2.6/planet/__init__.py:32: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5

William Grant (wgrant)
Changed in planet:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Daniel Holbach (dholbach) wrote :

The attached patch fixes the problem for me.

Comments? How do I get it upstream? :-)

Revision history for this message
nutznboltz (nutznboltz-deactivatedaccount) wrote :

This bug is all over the place.

(the [ ] below contain one space and one tab)

$ find /usr/lib/python2.6/dist-packages -name '*.py' -exec grep -l "import[ ][ ]*md5" {} \;
/usr/lib/python2.6/dist-packages/checkbox/lib/safe.py
/usr/lib/python2.6/dist-packages/twisted/protocols/sip.py
/usr/lib/python2.6/dist-packages/twisted/web/woven/guard.py
/usr/lib/python2.6/dist-packages/twisted/web/test/test_httpauth.py
/usr/lib/python2.6/dist-packages/twisted/web/monitor.py
/usr/lib/python2.6/dist-packages/twisted/web/server.py
/usr/lib/python2.6/dist-packages/twisted/web/_auth/digest.py
/usr/lib/python2.6/dist-packages/twisted/trial/test/test_loader.py
/usr/lib/python2.6/dist-packages/twisted/python/test/test_zipstream.py
/usr/lib/python2.6/dist-packages/twisted/python/otp.py
/usr/lib/python2.6/dist-packages/twisted/cred/util.py
/usr/lib/python2.6/dist-packages/twisted/spread/pb.py
/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/tools/Editra/src/extern/ez_setup.py
/usr/lib/python2.6/dist-packages/landscape/broker/exchange.py
/usr/lib/python2.6/dist-packages/landscape/user/management.py
/usr/lib/python2.6/dist-packages/landscape/lib/md5crypt.py
/usr/lib/python2.6/dist-packages/landscape/lib/scriptcontent.py
/usr/lib/python2.6/dist-packages/wx/tools/Editra/src/extern/ez_setup.py
/usr/lib/python2.6/dist-packages/softwareproperties/SoftwareProperties.py

Revision history for this message
Daniel Holbach (dholbach) wrote :

nutznboltz: I'd suggest filing separate bugs for all the others.

Revision history for this message
brain90 (gibransyah) wrote :

@Daniel Holbach
Kudos to you, :-) Your patch works with a charms

My system:
* Ubuntu 9.10,
* Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41),
* planetplanet nightly version 24 December 2009.

David Futcher (bobbo)
tags: added: patch-forwarded-upstream
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

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