Rename to with_() since with is reserved in Python >=2.6

This commit is contained in:
Stein Magnus Jodal 2010-02-07 21:24:57 +01:00
parent b6bceacc0f
commit 682b14c13c

View File

@ -218,7 +218,7 @@ class Playlist(object):
tracks.append(track.mpd_format(position)) tracks.append(track.mpd_format(position))
return tracks 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 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. not given are taken from the object the method is called on.