[gnome-commander/gcmd-1-2-8] Fixed problem #640387 (usage of deprecated python modules: md5, sha1)



commit 1832ba3412a1f9404a13952d2e26815cdf2f8e77
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Mon Jan 24 17:56:40 2011 +0100

    Fixed problem #640387 (usage of deprecated python modules: md5, sha1)

 NEWS                              |    1 +
 doc/C/gnome-commander.xml         |    3 +++
 plugins/python/md5sum/md5sum.py   |    4 ++++
 plugins/python/sha1sum/sha1sum.py |    4 ++++
 4 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 492d417..0c94fe3 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ gnome-commander 1.2.8.11
 ---------------
 
 Bug fixes:
+ * Fixed problem #640387 (usage of deprecated python modules: md5, sha1)
 
 
 ===================================
diff --git a/doc/C/gnome-commander.xml b/doc/C/gnome-commander.xml
index 4920c40..98a013b 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -6107,6 +6107,9 @@
                 <para>Bug fixes:</para>
                 <para>
                     <itemizedlist>
+                        <listitem>
+                            <para>Fixed problem #640387 (usage of deprecated python modules: md5, sha1)</para>
+                        </listitem>
                     </itemizedlist>
                 </para>
             </entry>
diff --git a/plugins/python/md5sum/md5sum.py b/plugins/python/md5sum/md5sum.py
index b121e55..cf8d740 100644
--- a/plugins/python/md5sum/md5sum.py
+++ b/plugins/python/md5sum/md5sum.py
@@ -20,6 +20,10 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
 
+import warnings
+
+warnings.simplefilter("ignore", DeprecationWarning)
+
 try:
     import gnomevfs
 except ImportError:
diff --git a/plugins/python/sha1sum/sha1sum.py b/plugins/python/sha1sum/sha1sum.py
index 74fb279..eb2027d 100644
--- a/plugins/python/sha1sum/sha1sum.py
+++ b/plugins/python/sha1sum/sha1sum.py
@@ -20,6 +20,10 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
 
+import warnings
+
+warnings.simplefilter("ignore", DeprecationWarning)
+
 try:
     import gnomevfs
 except ImportError:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]