All pastes #542609 Raw Edit

Mine

public text v1 · immutable
·published 2007-06-05 21:47 UTC
rendered paste body
Index: python/deskbar-handler/tracker-handler.py
===================================================================
--- python/deskbar-handler/tracker-handler.py   (revision 596)
+++ python/deskbar-handler/tracker-handler.py   (working copy)
@@ -248,7 +248,7 @@
                for info in hits:
                        output = {} 
                        output['name'] = os.path.basename(info[0])
-                       output['uri'] = cgi.escape(info[0]).encode("ascii") # we need ascii for gobject.spawn_async later
+                       output['uri'] = str(cgi.escape(info[0]))
                        output['type'] = info[1]
                        if TYPES.has_key(output['type']) == 0:
                                output['type'] = "Other Files"