DeprecationWarning: the md5 module is deprecated; use hashlib instead

Bug #300857 reported by Glenn D.
This bug report is a duplicate of:  Bug #292542: Support Python 2.6 too. Edit Remove
2
Affects Status Importance Assigned to Milestone
Smart Package Manager
New
Undecided
Unassigned

Bug Description

Hello,
How do I fix the error message generated by the command

# smart channel --show
/usr/lib64/python2.6/site-packages/smart/const.py:39: DeprecationWarning: object.__new__() takes no parameters
  instance = klass._registry[name] = object.__new__(klass, name)
/usr/lib64/python2.6/site-packages/smart/util/strtools.py:28: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5

# smart --version
/usr/lib64/python2.6/site-packages/smart/const.py:39: DeprecationWarning: object.__new__() takes no parameters
  instance = klass._registry[name] = object.__new__(klass, name)

# python --version
Python 2.6

Opensuse 11.1 beta5 64bit

# uname -a
Linux test2 2.6.27.5-2-default #1 SMP 2008-11-11 15:15:33 +0100 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Glenn D. (doiggl) wrote :

other info - slightly older - possible solution
http://code.djangoproject.com/ticket/7919

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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