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



commit e8131e46e9bc557e96f05be1545b7c32d1240ce5
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 900d4dc8..6e3ee67e 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]