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



commit 514220dc6e34ba6179e8f36b764bcdf92059cbea
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]