[gnome-music/wip/mschraal/player-factor-out-gstreamer] gstplayer: id -> id_
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/player-factor-out-gstreamer] gstplayer: id -> id_
- Date: Sun, 25 Feb 2018 15:52:46 +0000 (UTC)
commit 546c1ed9b7af361eba2ddfd1efb3ebd3e06aec57
Author: Marinus Schraal <mschraal gnome org>
Date: Sun Feb 25 15:47:39 2018 +0100
gstplayer: id -> id_
id is a python keyword, avoid possible confusion.
gnomemusic/gstplayer.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/gstplayer.py b/gnomemusic/gstplayer.py
index a7b5b22..55a5add 100644
--- a/gnomemusic/gstplayer.py
+++ b/gnomemusic/gstplayer.py
@@ -123,8 +123,8 @@ class GstPlayer(GObject.GObject):
def _on_new_clock(self, bus, message):
print("NEW CLOCK")
clock = message.parse_new_clock()
- id = clock.new_periodic_id(0, 1 * 10**9)
- clock.id_wait_async(id, self._on_clock_tick, None)
+ id_ = clock.new_periodic_id(0, 1 * 10**9)
+ clock.id_wait_async(id_, self._on_clock_tick, None)
@log
def _on_clock_lost(self, bus, message):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]