Summary: | net-nntp/hellanzb shows deprecation warnings with python-2.6 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ben de Groot (RETIRED) <yngwin> |
Component: | Current packages | Assignee: | Alexis Ballier <aballier> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | pho |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 230205 | ||
Attachments: |
Fix python-2.6 DeprecationWarning
New ebuild |
Description
Ben de Groot (RETIRED)
![]() 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 |