--- plugins/rbzeitgeist/rbzeitgeist.py~ 2013-07-09 12:31:22.000000000 +0000 +++ plugins/rbzeitgeist/rbzeitgeist.py 2013-09-04 15:05:10.000000000 +0000 @@ -37,8 +37,8 @@ try: IFACE = ZeitgeistClient() -except RuntimeError, e: - print "Unable to connect to Zeitgeist, won't send events. Reason: '%s'" %e +except RuntimeError as e: + print ("Unable to connect to Zeitgeist, won't send events. Reason: '%s'" %e) IFACE = None class ZeitgeistPlugin(GObject.Object, Peas.Activatable): @@ -46,12 +46,12 @@ object = GObject.property(type=GObject.Object) def __init__(self): - GObject.Object.__init__(self) + GObject.Object.__init__(self) def do_activate(self): - print "Loading Zeitgeist plugin..." + print ("Loading Zeitgeist plugin...") if IFACE is not None: - shell = self.object + shell = self.object shell_player = shell.props.shell_player self.__psc_id = shell_player.connect("playing-song-changed", self.playing_song_changed) @@ -109,7 +109,7 @@ idle, it means there are no more signals scheduled, so we will have already received the eos if it was coming. """ - shell = self.object + shell = self.object db = shell.props.db GLib.idle_add(self.send_to_zeitgeist, db, entry, event_type) @@ -150,9 +150,9 @@ f.query_info_async(Gio.FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE, Gio.FileQueryInfoFlags.NONE, GLib.PRIORITY_DEFAULT, None, file_info_complete, None) def do_deactivate(self): - print "Deactivating Zeitgeist plugin..." + print ("Deactivating Zeitgeist plugin...") if IFACE is not None: - shell = self.object + shell = self.object shell_player = shell.props.shell_player shell_player.disconnect(self.__psc_id) self.__psc_id = None