Репозитории ALT
S: | 3.4.7-alt2 |
5.1: | 0.12.6-alt0.M51.1 |
4.1: | 0.11.6-alt1.M41.1 |
4.0: | 0.9.7-alt1.0.M40.1 |
3.0: | 0.8.8-alt0.5 |
Группа :: Звук
Пакет: rhythmbox
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: rhythmbox-3.0-alt-zeitgeist_plugin_python3_syntax.patch
Скачать
Скачать
--- 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