GNOME Bugzilla – Bug 640387
The sha,md5 module are deprecated; use the hashlib module instead
Last modified: 2011-05-12 20:17:26 UTC
Created attachment 179139 [details] [review] Replace the md5,sha modules to avoid DeprecationWarnings with Python 2.6 When running gnome-commander from the terminal, on right-clicking to {md5,sha1}sum the following message is shown: usr/lib/gnome-commander/plugins/sha1sum.py:30: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha This is 'cause of the md5,sha modules are deprecated since Python2.6. The attached patch solves this.
1.2.8.x series of gcmd comes with python 2.4 requirement. I wouldn't like to increase dependency in this series and - unfortunately - hashlib is available starting from 2.5 So I've silenced DeprecationWarnings using: import warnings warnings.simplefilter("ignore", DeprecationWarning) The latest code (upcoming 1.4) doesn't use deprecated md5 and sha modules Thank you for your bug report - the fix will go into the next, 1.2.8.11 release
*** Bug 610768 has been marked as a duplicate of this bug. ***
Created attachment 187190 [details] [review] Avoid hiding warnings Hi again, the attached patch fixes this without hiding any warning.
Thank you for your fix - it'll go into the next, 1.2.8.12 release.