def __repr__(self):
        if not self.is_loaded:
            return 'Playlist(<not loaded>)'
        try:
            return 'Playlist(%r)' % self.link.uri
        except spotify.Error as exc:
            return 'Playlist(<error: %s>)' % exc
dataset/ETHPy150Open mopidy/pyspotify/spotify/playlist.py/Playlist.__repr__/original