mirror of
https://github.com/beetbox/beets.git
synced 2026-01-06 16:02:53 +01:00
get rid of dictionary comprehensions
for Python 2.6 compatibility
This commit is contained in:
parent
247e3b9e01
commit
d80576fec1
2 changed files with 4 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue