[gnome-music/wip/jfelder/playlists-core-rewrite-prep-work: 8/24] playlists: Add missing __repr__ method to Playlist class



commit 4d7fc85fdee7640201964dee1303283a22032857
Author: Jean Felder <jfelder src gnome org>
Date:   Mon May 13 17:32:28 2019 +0200

    playlists: Add missing __repr__ method to Playlist class

 gnomemusic/playlists.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gnomemusic/playlists.py b/gnomemusic/playlists.py
index e3cc15d9..3a888c90 100644
--- a/gnomemusic/playlists.py
+++ b/gnomemusic/playlists.py
@@ -46,6 +46,9 @@ class Playlist(GObject.GObject):
     TAG_TEXT = ""
     TITLE = ""
 
+    def __repr__(self):
+        return "<Playlist>"
+
     def __init__(self):
         super().__init()
 


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