From 682b14c13c1034c8b1c4f6a9b547e03e50ed0042 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Sun, 7 Feb 2010 21:24:57 +0100 Subject: [PATCH] Rename to with_() since with is reserved in Python >=2.6 --- mopidy/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mopidy/models.py b/mopidy/models.py index c2e97218..37b0853a 100644 --- a/mopidy/models.py +++ b/mopidy/models.py @@ -218,7 +218,7 @@ class Playlist(object): tracks.append(track.mpd_format(position)) return tracks - def with(self, uri=None, name=None, tracks=None): + def with_(self, uri=None, name=None, tracks=None): """ Create a new playlist object with the given values. The values that are not given are taken from the object the method is called on.