md5 module deprecation warning in log file

Bug #413798 reported by jeff story
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gDesklets
Fix Released
Wishlist
Bjoern Koch

Bug Description

In my separate bug report (403774), Joe Sapp wrote:

"In regard to the md5 module, it's been deprecated since Python 2.5 but it's just showing a warning in 2.6 (http://www.python.org/doc/2.5.2/lib/module-md5.html). Do you mind filing a separate bug so we don't neglect it?"

Below is the log message:

Log messages of /home/jeff/.gdesklets/logs/gdesklets%3A0.0.log
==========================================================[07/24/09-14:08:16]===
Adding "/usr/lib/gdesklets/Displays/Clock/clock.display" with ID "id1243796493893558"
to the desklet list.
/usr/lib/gdesklets/plugin/Interface.py:86: DeprecationWarning: the md5 module is
deprecated; use hashlib instead
  import md5

Revision history for this message
Bjoern Koch (h.humpel) wrote :

OK, this can easily be fixed by using hashlib instead of md5 in plugin/Interface.py.
Seems to be running here fine ;).

BUT: when switching from md5 to hashlib we will have to switch to python 2.5+, too.
Will start a discussion about it on the MailingList.

Changed in gdesklets:
assignee: nobody → Bjoern Koch (h.humpel)
importance: Undecided → Wishlist
milestone: none → release-of-0.36.2
status: New → Triaged
Revision history for this message
Bjoern Koch (h.humpel) wrote :

From Joe Sapp on the Mailing List:
> I wonder if there's a compile-time (or daemon-start time) way
> to determine the python version and then use the appropriate
> module and methods. Compile-time could reduce the minor
> overhead of supporting both, but it isn't as flexible if the
> python version changes after gD is installed.

OK, I hopefully found a clean way to deal with it by using try-except on the import of the hashlib.
Haven't tested it on a Python2.4 based system though.
Fix committed in rev #124.

Changed in gdesklets:
status: Triaged → Fix Committed
Revision history for this message
Bjoern Koch (h.humpel) wrote :

Released with gDesklets 0.36.2.

Changed in gdesklets:
status: Fix Committed → Fix Released
Revision history for this message
jeff story (jeffstory) wrote : Re: [Bug 413798] Re: md5 module deprecation warning in log file

OK,

That's great news Bjoern!!!

As a way for me to give back and support the Linux, OSS community, I'll make a donation to the Gdesklets project.

Would you be able to direct me to the info for a donation?

Thanks,

http://jeffstory.org
<email address hidden>

--- On Sun, 2/28/10, Bjoern Koch <email address hidden> wrote:

From: Bjoern Koch <email address hidden>
Subject: [Bug 413798] Re: md5 module deprecation warning in log file
To: <email address hidden>
Date: Sunday, February 28, 2010, 7:38 AM

Released with gDesklets 0.36.2.

** Changed in: gdesklets
       Status: Fix Committed => Fix Released

--
md5 module deprecation warning in log file
https://bugs.launchpad.net/bugs/413798
You received this bug notification because you are a direct subscriber
of the bug.

Status in gDesklets: Fix Released

Bug description:
In my separate bug report (403774), Joe Sapp wrote:

"In regard to the md5 module, it's been deprecated since Python 2.5 but it's just showing a warning in 2.6 (http://www.python.org/doc/2.5.2/lib/module-md5.html). Do you mind filing a separate bug so we don't neglect it?"

Below is the log message:

Log messages of /home/jeff/.gdesklets/logs/gdesklets%3A0.0.log
==========================================================[07/24/09-14:08:16]===
Adding "/usr/lib/gdesklets/Displays/Clock/clock.display" with ID "id1243796493893558"
to the desklet list.
/usr/lib/gdesklets/plugin/Interface.py:86: DeprecationWarning: the md5 module is
deprecated; use hashlib instead
  import md5

To unsubscribe from this bug, go to:
https://bugs.launchpad.net/gdesklets/+bug/413798/+subscribe

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.