From fc76318f209a68c170c175c3d00f2e13d85ca578 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Sun, 24 Mar 2013 00:03:42 +0100 Subject: [PATCH] models: Comment Album.images not preserving order --- mopidy/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mopidy/models.py b/mopidy/models.py index e14fd8b4..4020febb 100644 --- a/mopidy/models.py +++ b/mopidy/models.py @@ -203,6 +203,9 @@ class Album(ImmutableObject): #: The album image URIs. Read-only. images = frozenset() + # XXX If we want to keep the order of images we shouldn't use frozenset() + # as it doesn't preserve order. I'm deferring this issue until we got + # actual usage of this field with more than one image. def __init__(self, *args, **kwargs): # NOTE kwargs dict keys must be bytestrings to work on Python < 2.6.5