When using xmlrpc to communicate with the hellanzb daemon, these deprecation warnings are always shown: /usr/lib64/python2.6/site-packages/twisted/internet/_sslverify.py:5: DeprecationWarning: the md5 module is deprecated; use hashlib instead import itertools, md5 /usr/lib64/python2.6/site-packages/twisted/python/filepath.py:12: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha /usr/lib64/python2.6/site-packages/Hellanzb/Util.py:33: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 self.message = message Installed hellanzb version is 0.13-r7 Installed python version is 2.6.1
here too. with python-2.6.1-r1 and hellanzb-0.13-r7
Created attachment 190418 [details, diff] Fix python-2.6 DeprecationWarning I found a ticket at the hellanzb project: http://www.hellanzb.com/trac/hellanzb/ticket/419 I took the patch from there and made it work for gentoo (deleted 2 hunks because the files are not there). There is still a problem with the dev-python/twisted-8.2.0 package. I will create a new bug for that. New ebuild with added patch line will follow.
Created attachment 190420 [details] New ebuild
See bug 268737 for the dev-python/twisted-8.2.0 part.
Why do you do "try import hashlib except importerror" ? At least python2.5 has hashlib here. This would be fine if the patch didn't change later the call from md5.new() to md5() which will probably fail if hashlib isn't there.
(In reply to comment #5) > Why do you do "try import hashlib except importerror" ? At least python2.5 > has hashlib here. He probably wants to support Python 2.4... > This would be fine if the patch didn't change later the call from md5.new() > to md5() which will probably fail if hashlib isn't there. It won't fail.
applied, thanks