cwm bug - deprecation warnings with python 2.6

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

cwm bug - deprecation warnings with python 2.6

Martin Thurn
On Fedora Core 11 with Python 2.6, cwm spits out several warnings:

/usr/lib/python2.6/site-packages/swap/why.py:30: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5, binascii  # for building md5 URIs
#Processed by Id: cwm.py,v 1.197 2007/12/13 15:38:39 syosi Exp
        #    using base file:///home/thurnma/Work/workspace/SHARDS_API/
/usr/lib/python2.6/site-packages/swap/term.py:1655: DeprecationWarning: object.__new__() takes no parameters
  self = Fragment.__new__(cls, *args, **keywords)
/usr/lib/python2.6/site-packages/swap/cwm_crypto.py:15: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import md5, sha, binascii, quopri, base64

 - - Martin