[gedit-plugins] dashboard: fix syntax error



commit e67f02faa272d1382ac4d945c92b6956e9c411d8
Author: Thomas Bechtold <thomasbechtold jpberlin de>
Date:   Sat Mar 23 20:40:06 2013 +0100

    dashboard: fix syntax error
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696467

 plugins/dashboard/dashboard/dashboard.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/dashboard/dashboard/dashboard.py b/plugins/dashboard/dashboard/dashboard.py
index 2f56c2c..e0fb288 100644
--- a/plugins/dashboard/dashboard/dashboard.py
+++ b/plugins/dashboard/dashboard/dashboard.py
@@ -322,7 +322,7 @@ class ListView(Gtk.TreeView):
         item = event.subjects[0]
         if uri_exists(item.uri):
             uri = item.uri.replace(self.home_path, "Home").split("/")
-            uri = u" → ".join(uri[0:len(uri) - 1])
+            uri = " → ".join(uri[:-1])
             text = """<span size='large'><b>
                %s\n</b></span><span color='darkgrey'>   %s
                </span>"""%(item.text, uri)


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