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



commit 2b68ebca3d2d0852fee95167beeb3b2dbbc1348f
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 494dae7b..f9d9e890 100644
--- a/gnomemusic/playlists.py
+++ b/gnomemusic/playlists.py
@@ -46,6 +46,9 @@ class Playlist(GObject.Object):
     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]