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



commit a2b25d1a1b45a2c8725f9aba331d79c4cc1fd024
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 1b44854c..6ef5faf0 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]