diff options
Diffstat (limited to 'examples/md5sum-property-page.py')
-rw-r--r-- | examples/md5sum-property-page.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/examples/md5sum-property-page.py b/examples/md5sum-property-page.py index 6f3f345..0557058 100644 --- a/examples/md5sum-property-page.py +++ b/examples/md5sum-property-page.py @@ -1,12 +1,5 @@ import hashlib -try: - # Python 3. - from urllib.parse import unquote -except: - # Python 2. - from urllib import unquote - from gi.repository import Caja, Gtk, GObject class MD5SumPropertyPage(GObject.GObject, Caja.PropertyPageProvider): @@ -24,7 +17,7 @@ class MD5SumPropertyPage(GObject.GObject, Caja.PropertyPageProvider): if file.is_directory(): return - filename = unquote(file.get_uri()[7:]) + filename = file.get_location().get_path() self.property_label = Gtk.Label('MD5Sum') self.property_label.show() |