From f5903e9aa7023c12f9cf23ed47cdb5f69fcd0c01 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Sat, 23 Oct 2010 22:11:33 +0200 Subject: [PATCH] GH-26: Use 'string' as dict key --- mopidy/frontends/mpd/protocol/music_db.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mopidy/frontends/mpd/protocol/music_db.py b/mopidy/frontends/mpd/protocol/music_db.py index 4c2031aa..fb3a3a09 100644 --- a/mopidy/frontends/mpd/protocol/music_db.py +++ b/mopidy/frontends/mpd/protocol/music_db.py @@ -196,6 +196,7 @@ def _list_build_query(field, mpd_query): query = {} while tokens: key = tokens[0].lower() + key = str(key) # Needed for kwargs keys on OS X and Windows value = tokens[1] tokens = tokens[2:] if key not in (u'artist', u'album', u'date', u'genre'):