python-crypto uses sha module that's deprecated in python2.6

Bug #337073 reported by Martin Pool
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-crypto (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: python-crypto

For example:

mbp@grace% python -c 'import Crypto.Hash.SHA'
/usr/lib/python2.6/dist-packages/Crypto/Hash/SHA.py:6: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  from sha import *

mbp@grace% python -c 'import Crypto.Hash.MD5'
/usr/lib/python2.6/dist-packages/Crypto/Hash/MD5.py:6: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  from md5 import *

ProblemType: Bug
Architecture: amd64
DistroRelease: /usr/bin/lsb_release:81: DeprecationWarning: the sets module is deprecated import sets Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: python-crypto 2.0.1+dfsg1-2.3ubuntu3
ProcEnviron:
 PATH=(custom, user)
 LANG=en_AU.UTF-8
 SHELL=/bin/zsh
SourcePackage: python-crypto
Uname: Linux 2.6.28-8-generic x86_64

Revision history for this message
Martin Pool (mbp) wrote :
Kees Cook (kees)
Changed in python-crypto:
importance: Undecided → Medium
milestone: none → ubuntu-9.04-beta
status: New → Confirmed
Revision history for this message
Martin Pool (mbp) wrote :

Here's the fix, extracted from the upstream repository. I've verified that when applied to the current Ubuntu source it fixes the warnings. It would be nice if someone could merge it for jaunty.

Revision history for this message
James Westby (james-w) wrote :

Hi,

Here's a debdiff including the patch.

Thanks,

James

Revision history for this message
James Westby (james-w) wrote :
Martin Pitt (pitti)
Changed in python-crypto (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-crypto - 2.0.1+dfsg1-2.3ubuntu4

---------------
python-crypto (2.0.1+dfsg1-2.3ubuntu4) jaunty; urgency=low

  [ Martin Pool ]
  * Take patch from upstream to avoid deprecation warnings under python 2.6.
    (LP: #337073)

 -- James Westby <email address hidden> Tue, 10 Mar 2009 16:12:48 +1000

Changed in python-crypto:
status: Fix Committed → Fix Released
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.