Deprecation warning with python2.6

Bug #336706 reported by Ori Avtalion
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
python-gdata (Ubuntu)
Fix Released
Low
Michael Vogt
totem (Ubuntu)
Invalid
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: python-gdata

Using python-gdata 1.2.4-0ubuntu1 in jaunty.

$ python2.6 -c "from gdata.tlslite.utils import cryptomath"
/var/lib/python-support/python2.6/gdata/tlslite/utils/cryptomath.py:9: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha

Tags: python2.6
Revision history for this message
Ori Avtalion (salty-horse) wrote :

I originally spotted this when running totem (2.25.92-0ubuntu2)

$ totem
/var/lib/python-support/python2.6/gdata/tlslite/utils/cryptomath.py:9: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha

Revision history for this message
Sebastien Bacher (seb128) wrote :

the warning is not a totem one

Changed in totem:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Invalid
Revision history for this message
Peter Bui (pnutzh4x0r) wrote :

I attached a patch that will remove the warning and keep the functionality. I just did what the warning said and replaced sha with hashlib.

Revision history for this message
Brian Murray (brian-murray) wrote :

Looking at the attachments in this bug report, I noticed that "Use hashlib instead of sha" was not flagged as a patch. A patch contains changes to an Ubuntu package that will resolve a bug and this attachment is one! Subsequently, I've checked the patch flag for it. In the future when submitting patches please use the patch checkbox as there are some Launchpad searches that use this feature. You can learn more about patch workflow at https://wiki.ubuntu.com/Bugs/Patches. Thanks for your contribution Peter Bui!

Revision history for this message
Florent (florent.x) wrote :

Confirmed here.
  python-gdata: 1.2.4-0ubuntu1

Changed in python-gdata (Ubuntu):
status: New → Confirmed
Changed in python-gdata (Ubuntu):
importance: Undecided → Low
Revision history for this message
Andreas Moog (ampelbein) wrote :

debdiff attached.

Upstream issue at http://code.google.com/p/gdata-python-client/issues/detail?id=236

python-gdata (1.2.4-0ubuntu2) karmic; urgency=low

  * debian/patches
    - added 01_deprecated_sha.patch to fix deprecation-warning with
      python 2.6 (LP: #336706) Thanks to Peter Bui for the patch.

 -- Andreas Moog <email address hidden> Tue, 19 May 2009 00:47:27 +0200

Michael Vogt (mvo)
Changed in python-gdata (Ubuntu):
assignee: nobody → Michael Vogt (mvo)
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-gdata - 1.2.4-0ubuntu2

---------------
python-gdata (1.2.4-0ubuntu2) karmic; urgency=low

  * debian/patches
    - added 01_deprecated_sha.patch to fix deprecation-warning with
      python 2.6 (LP: #336706) Thanks to Peter Bui for the patch.

 -- Andreas Moog <email address hidden> Tue, 19 May 2009 00:47:27 +0200

Changed in python-gdata (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Mike Basinger (mike.basinger) wrote :

Will this be fixed in Jaunty?

Revision history for this message
Mike Basinger (mike.basinger) wrote :

Debdiff created for Jaunty to fix bug.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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