[nautilus-python] Updated the property page example to import hashlib instead of the deprecated md5 module



commit 1a23bb1c2e025b36e784afb50a4837a6c6c7ded9
Author: Adam Plumb <adamplumb gmail com>
Date:   Thu Jan 14 15:32:02 2010 -0500

    Updated the property page example to import hashlib instead of the deprecated md5 module

 examples/md5sum-property-page.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/examples/md5sum-property-page.py b/examples/md5sum-property-page.py
index 81b3b29..271c18a 100644
--- a/examples/md5sum-property-page.py
+++ b/examples/md5sum-property-page.py
@@ -1,4 +1,4 @@
-import md5
+import hashlib
 import urllib
 
 import gtk
@@ -34,7 +34,7 @@ class MD5SumPropertyPage(nautilus.PropertyPageProvider):
         self.value_label = gtk.Label()
         self.hbox.pack_start(self.value_label)
 
-        md5sum = md5.md5(filename).hexdigest()
+        md5sum = hashlib.md5(filename).hexdigest()
         self.value_label.set_text(md5sum)
         self.value_label.show()
         



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