get rid of dictionary comprehensions

for Python 2.6 compatibility
This commit is contained in:
Adrian Sampson 2013-08-29 17:07:04 -07:00
parent 247e3b9e01
commit d80576fec1
2 changed files with 4 additions and 2 deletions

View file

@ -955,7 +955,9 @@ class Results(object):
(row['id'],)
)
values = dict(row)
values.update({row['key']: row['value'] for row in flex_rows})
values.update(
dict((row['key'], row['value']) for row in flex_rows)
)
# Construct the Python object and yield it if it passes the
# predicate.

View file

@ -93,7 +93,7 @@ def mbsync_albums(lib, query, move, pretend, write):
continue
items = list(a.items())
old_data = {item: dict(item) for item in items}
old_data = dict((item, dict(item)) for item in items)
# Get the MusicBrainz album information.
album_info = hooks.album_for_mbid(a.mb_albumid)