GH-26: Use 'string' as dict key

This commit is contained in:
Stein Magnus Jodal 2010-10-23 22:11:33 +02:00
parent 1734a2e2f0
commit f5903e9aa7

View File

@ -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'):